1

I am using Visual Studio 2017, and install SFMC.FuelSDK by using Nuget.

I use this:

        NameValueCollection parameters = new NameValueCollection();
        parameters.Add("clientId", "xxxxxxxxxxxxx");
        parameters.Add("clientSecret", "xxxxxxxxxxxxxxxxx");
        ETClient myclient = new ETClient(parameters);

and get (401) Unauthorized. I get clientId and clientSecret from App Center. I tested my clientId and clientSecret with URL (https://auth.exacttargetapis.com/v1/requestToken), and they are valid.

Does anyone know what I did wrong or what should I try?

3

please add the following line and try again:

parameters.Add("authEndPoint", "https://auth.exacttargetapis.com/v1/requestToken?legacy=1");

| improve this answer | |
  • Is there a document showing about this parameter? – Ponpirat Nov 6 '17 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.