I am working on quickbooks v3 api integration. I have done all integrations but got stuck in Quickbooks Disconnect from app.
I am using the following snippet of code for disconnecting from quickbooks
final IAPlatformClient pClient = new IAPlatformClient();
pClient.disconnect(consumerkey, consumersecret, accessToken, accessTokenSecret);
This code is throwing the following error
Error Code: null,Error Message: Failed to disconnect: null null at com.intuit.ia.connection.PlatformHttpClient.disconnect(PlatformHttpClient.java:81) at com.intuit.ia.connection.IAPlatformClient.disconnect(IAPlatformClient.java:40) at com.intuit.ia.connection.IAPlatformClient$disconnect.call(Unknown Source)
Not sure if i am missing any dependency for disconnect api as all other integrations(sign-in/blue-dot menu/connect to QB) are working fine with the v3 API.
I had done it using v2 quickbooks API and everything was working but getting this in v3.
Any help would be appreciated.
Thanks in advance
EDIT
Quickbooks disconnect API at https://developer.intuit.com/docs/0025_quickbooksapi/0060_auth_auth/0015_disconnect_api descripbed the URL requires a GEt request. So instead of going through the v3 API i also tried to make a GET request to the api url as follows
Now i get error code 50 "Missing appToken" error
Does the disconnect API work with GET request? Which parameter am i missing here?
UPDATE:
Link for Sample code for Quickbooks V3 API.
https://github.com/IntuitDeveloperRelations/QuickbooksV3API-Java/tree/master/QuickbooksV3API