My First API

Highlighted
New Member
2 0 0

Hello

In Apps - Manage Private Apps - 

ADMIN API PERMISSIONS

Reports

write_reports, read_reports

Now I Clicked Saved.

 

Now I Want To Share This API To My Brother 

https://apikey:password@hostname/admin/resource.json

now its asking login username and password

how to share my api to others?

Need Help

Thank You

0 Likes
Shopify Staff
Shopify Staff
1016 11 136

You'll want to ensure your brother is not making the API requests with cookies, otherwise we redirect to an admin log in page if cookies are detected. This is easier to do with an HTTP client like Insomnia or Postman if they aren't already (or cUrl if you want to be even more minimal).

Cheers.

0 Likes
New Member
2 0 0

Hello

 

Thanks For Your Reply

 

I have Created Api to get order details using Private App @

 

Now I want to give this API To others so that they can view our order details

 

How To Do So

0 Likes
Community Manager
Community Manager
347 1 31

Hi there,

 

In order for your brother to be able to access an endpoint in the browser, he would need to be logged in to the shop's admin. If he doesn't have an account, he would need to have one created for him in order to log in.

 

Alternatively, if you just wanted to do some adhoc testing, you could use a service such as Postman or Insomnia.

0 Likes