FuelSDK-PHP icon indicating copy to clipboard operation
FuelSDK-PHP copied to clipboard

"Error: API Permission Failed." in ET_Get.php

Open maskedjellybean opened this issue 4 years ago • 2 comments

I don't think this is a bug, but I'm hoping someone can tell me what I'm doing wrong. Line 78 of ET_Get.php always returns:

Screen Shot 2019-08-27 at 3 20 48 PM

At line 78 $authstub is:

Screen Shot 2019-08-27 at 3 22 57 PM

I'm trying to fix an implementation of ExactTarget/Marketing Cloud that is a few years old and recently randomly stopped working. I've narrowed down the failure to this line but I don't know what to make of the vague error message.

Does anyone see anything obviously wrong with $authstub? One thing that I thought was odd is that $authstub->tenantKey is null. I can't find any documentation on what tenantKey should be or how to set it. Is it the same as the 28 char string described here? https://help.salesforce.com/articleView?id=mc_rn_october_2018_platform_tenant_specific_subdomains.htm&type=5

So far I've tried:

  • Updating the SDK from .9 to 1.3.0, but I found this call fails in both versions with the same message.
  • Using the tenant specific domain endpoints described here: https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/wsdl-endpoint-links.htm
  • Passing 'tenantKey' equal to my tenant specific domain 28 char string as part of $config when instantiating new ET_Client().

Any help would be appreciated. I can provide whatever information would be helpful.

Environment

  • SDK Version [e.g. 1.3.0]
  • PHP version 7.1.28

maskedjellybean avatar Aug 27 '19 22:08 maskedjellybean