I want to validate the App ID , e.g. sd108 from user entry. I don’t see a way to do that in the V2 API.
How to retrieve the App ID given a Service Acct. Key?
Thanks
I want to validate the App ID , e.g. sd108 from user entry. I don’t see a way to do that in the V2 API.
How to retrieve the App ID given a Service Acct. Key?
Thanks
@Jeffrey_Chimene I don’t believe there’s an endpoint to do that (maybe someone from Keap can weigh in), but if you’re using OAuth you will receive the app id as part of the scope GET parameter when a user completes the OAuth flow.
The return url gets query params that look something like this: ?code=ABCDEF1234567&scope=full|abc123.infusionsoft.com
I understand this may not be suitable for your scenario….maybe? ![]()
Hi @Jeffrey_Chimene currently this isn’t possible via our REST APIs, as there’s no endpoint to retrieve or validate an App ID. Could you let me know your use case?
@Jeffrey_Chimene, does endpoint help you?
https://developer.infusionsoft.com/docs/restv2/#tag/Settings/operation/isApplicationEnabledUsingGET
@Todd_Stoker I’m not using OAuth, using SAK technique
@OmarAlmonte Use case is to workaround this issue. The V1 endpoint requires the app id. This endoint would be used to test user input
@Jeffrey_Chimene the issue is in the SDK, the endpoint itself is working as expected and can still be called directly without the SDK.
We’ve identified the problem in the SDK mapping. As a workaround, you can fix it locally by updating the following file:
GetApplicationEnabledStatusResponse.php
Change the attribute mapping from:
protected static $attributeMap = [
'enabled' => 'enabled'
];
to
protected static $attributeMap = [
'enabled' => 'isEnabled'
];
Thanks @OmarAlmonte , I will try that.
I’d still like to validate the App Id when using a Service Account Key. A correct value will be needed for the Achieve. API goal call in V1.
I guess it’s not a solution to this thread.
@Jeffrey_Chimene I’ll raise this internally and follow up with an update.