ChannelApe / shopify-sdk

Java SDK for Shopify REST APIs
Apache License 2.0
159 stars 110 forks source link

Documentation for this SDK #93

Open samydevv opened 2 years ago

samydevv commented 2 years ago

Hi ChannelApe, Is there any documentation for this SDK?. and one more thing this SDK is only for the API call or it covers the Outh flow to get the offline/online access token.?

ryankazokas commented 2 years ago

Unfortunately the only docs currently out there is the readme in the repo. We are always open to pull requests to add some better docuemntation. We have added public methods in the ShopifySdk.java file so you should be able to go through the public methods there to see what is possible.

As far as oauth goes, you can have the sdk generate an access token to use if you provide the authorization code and clientId and client secret to the builder method.

ShopifySdk.newBuilder().withSubdomain("myshopifystore").withClientId("123").withClientSecret("456").withAuthorizationToken("789").build();

https://github.com/ChannelApe/shopify-sdk/blob/master/src/main/java/com/shopify/ShopifySdk.java#L1030