How to connect through java sdk

Highlighted
New Member
2 0 0

Hi! I am using the Java shopify sdk found on Github (https://github.com/ChannelApe/shopify-sdk)

 

When connecting to my shop I can do this by entering either

* clientid, clientsecret and authorizationtoken

 

		final ShopifySdk shopifySdk = ShopifySdk.newBuilder()
				  .withSubdomain("xxx")
				  .withClientId("xxx")
				  .withClientSecret("xxx")
				  .withAuthorizationToken("xxx").build();

OR

* accesstoken

 

		final ShopifySdk shopifySdk = ShopifySdk.newBuilder()
				  .withSubdomain("xxx")
				  .withAccessToken("xxx").build();

 

I understand that clientid and clientsecret must be the "API key" and "Shared secret" found in my private app dashboard. But what should I write under "authorization token" or "access token"? i have tried entering the "Storefront access token" found in the dashboard, but to no avail:

 

If I add the "Storefront acces token" as the "authorization token" in the first method I get the reply "There was a problem generating access token using shop subdomain of gung-shop and authorization code of ..."

 

If I add it as the "access token" in the second method I get the reply "[API] Invalid API key or access token (unrecognized login or wrong password)"

0 Likes
New Member
2 0 0

My main question I suppose is, what is a accesstoken and authorizationtoken and where can I find it?

0 Likes