Page 1 of 1

Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 4:53 am
by Josh Boddiford

I am trying to build an app (since my other app is also waiting on a REST API fix) and I've run into yet another problem with the REST Service component. I'm hoping there is a quick fix for this since it's been noted on here as a problem 12 months ago (no resolution noted on the topic)

I'm basically trying to authenticate the REST API over to the Shopify oAuth API which should be really simple. I can copy and paste the HTTPS request into a browser window and I get back the JSON or XML result set... so I tried putting this into the Tiggzi REST service and it's giving me an Invalid Username or API key error.

Here is the error. I just upgraded my Tiggzi account to PRO in hopes of some better/faster support... hoping you guys can meet my expectations here. This is frustrating.... I will again share my project with support@tiggzi.com

Thanks,
Josh

URL: https://1c14f7acec5508869e01258a1334a...
Method: get
Data Type: json
Content Type:
Security Context: 0
Request header parameters: none
Request body parameters: none

Error message:
GET https://1c14f7acec5508869e01258a1334a...? returned a response status of 401 Unauthorized

Server response:

[API] Invalid API key or access token (unrecognized login or wrong password)


Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 4:57 am
by Josh Boddiford

Here's a link to Shopify's API Documentation... http://api.shopify.com/legacy_authent...


Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 5:21 am
by maxkatz

I think they are using Basic Authentication - here is how to set it up: http://docs.tiggzi.com/documentation/...


Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 5:33 am
by Josh Boddiford

OK, I followed the directions but i'm still stuck... as I can't fill in the RESPONSE structure because I keep getting that same error. I have nothing to map the data to in the Mapping area so I can't even put it on the page.

Can you help me figure this out by opening up my app?

Image


Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 10:48 am
by Maryna Brodina

Hello! We'll take a look


Authentication with Shopify REST API - Not Working

Posted: Tue Nov 20, 2012 3:17 pm
by Maryna Brodina

Please try to change service URL to https://accbio.myshopify.com/admin/or...

Create Header parameter "Authorization" and value "Basic MWMxNGY3YWNlYzU1MDg4NjllMDEyNThhMTMzNGFlMWE6MzU5MGMwZTlmODllNzllMTdlYWVkMzk1ZjNhYmM2ZWQ=" - it's a text "1c14f7acec5508869e01258a1334ae1a:3590c0e9f89e79e17eaed395f3abc6ed" in Base64 format