Shopify get shop details api works fine in Postman, where I am passing the X-Shopify-Access-Token: in the header and the Shopify API being:
String shopApi = ShopifyConstants.shopRestApi.replace("#SHOPNAME",shop);
HttpHeaders headers2 = new HttpHeaders();
headers2.add(ShopifyConstants.httpAccessToken,accessToken);
HttpEntity request2 = new HttpEntity(headers2);
ResponseEntity<ShopifyShopResponse> respEntity = restTemplate.exchange(shopApi,HttpMethod.GET, request2, ShopifyShopResponse.class);
LOGGER.info(respEntity.getBody().toString()+" "+respEntity.getStatusCode());
User | Count |
---|---|
12 | |
12 | |
7 | |
6 | |
5 |