salesforce-marketingcloud / FuelSDK-Node-REST

Node REST client w/ auth to access the Salesforce Marketing Cloud (formerly ExactTarget) API
BSD 3-Clause "New" or "Revised" License
43 stars 22 forks source link

How to perform API calls on auth endpoint? #106

Open fib-at-isobar opened 3 years ago

fib-at-isobar commented 3 years ago

Hello, can you please provide an example how to call APIs accessible from auth server? E.g.: https://{{MC_ENV}}.auth.marketingcloudapis.com/v2/userinfo? Regards, Filip

fib-at-isobar commented 3 years ago

I tried multiple way including: { uri: '/v2/userinfo', baseUrl: 'https://XXX.auth.marketingcloudapis.com' } But I got following error: Error on /authenticated Error: options.uri must be a path when using options.baseUrl