Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use customer token without admin token REST API #68

Closed
msliman opened this issue Apr 6, 2017 · 1 comment
Closed

Use customer token without admin token REST API #68

msliman opened this issue Apr 6, 2017 · 1 comment

Comments

@msliman
Copy link

msliman commented Apr 6, 2017

Hi, I am using the API of the extension for the mobile app, but I don't want to use admin token for security wise, How can i use customer token?

@magefan
Copy link
Owner

magefan commented Apr 9, 2017

@msliman if you take a look at webapi.xml, you will find methods, that does not require authorization (admin token).
E.g."
curl "http://mystore.com/index.php/rest/V1/blog/post/view/:id/:store_id" - to get post data by id and store_id

curl "http://mystore.com/index.php/rest/V1/blog/post/list/:type/:term/:store_id/:page/:limit" - to get post list by different parameters (Magefan\Blog\Model\PostManagement::getList)

curl "http://mystore.com/index.php/rest/V1/blog/category/view/:id/:store_id" - to get category data by id and store_id

Also make sure you are using Magento 2 Blog Extension v2.5.0

@magefan magefan closed this as completed Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants