Skip to main content

Hi all,

Has anyone here ever used Marketing Cloud Fuel SDK?

 

I have installed marketing Cloud Fuel SDK using the instructions from Github(https://github.com/salesforce-marketingcloud/FuelSDK-Python.)

I set up the environment variables:

os.environ['FUELSDK_CLIENT_ID']

os.environ['FUELSDK_CLIENT_SECRET']

os.environ['FUELSDK_ACCOUNT_ID']

os.environ['FUELSDK_AUTH_URL']

os.environ['FUELSDK_BASE_API_URL']

os.environ['FUELSDK_DEFAULT_WSDL']

os.environ['FUELSDK_SOAP_ENDPOINT']

 

When I run my python code, i keep getting this error:

 

Unable to validate App Keys(ClientID/ClientSecret) provided: {'error': 'unsupported_grant_type', 'error_description': 'Use "authorization_code" or "refresh_token" or "client_credentials" or "urn:ietf:params:oauth:grant-type:jwt-bearer" as the grant_type.', 

 

Any idea what I could be doing wrong?

3 条评论
  1. 2020年4月13日 16:00
    @Fabienne Ishimwe

    - Based on the error, it sounds like there is an authentication issue occurring.

    I found this on StackExchange:

    https://salesforce.stackexchange.com/questions/257430/fuelsdk-endpoints-clarification?noredirect=1&lq=1

    I also found the following:

    https://connect2id.com/products/server/docs/api/token

    The first link above is a development resource and may not be 100% correct in regards to fixing the issue, but they are examples of where this error has occurred for other people and what they did. The second link is much more informative in nature versus anything else but addresses this topic. These are just resources I wanted to pass on to you that I found.

    Thank you!

0/9000