Spryker API's
Do I need premium version for using Glue API for a local project which requires api and auth,if not where to get the api documentation
Answers
-
Does this help ?
Documentation:
Guides:
0 -
yeah I got the swagger ui api documentation for my server but Iam not able to create access token iam getting this error { "errors": [ { "detail": "Invalid type.", "status": 400 } ]}
do i need to download any api application or it should work with my demo shop ?0 -
Verification of customer:
For almost every GLUE API call you need access token. To get one you need VERIFIED CUSTOMER. Verified customer is customer who's registered and accepted verification email he recieved. You can set any customer to be verified mannually in database.
In table spy_customer select customer you would like to verifiy. Go to columns "registered" and "registration_key". UNVERIFIED customers will have field "registered" set to null and some hash value in field "registration_key".
VERIFIED user will have field "registered" set to date of registration(format yyyy-mm-dd) and "registration_key" field is set to null.
Authentification with Oauth:
In "yellow" file /{name-of-spryker-project}/docker/deployment/default/env/Glue.env (i don't knwo from where it is generated) there is key "SPRYKER_OAUTH_CLIENT_SECRET" and "SPRYKER_OAUTH_CLIENT_IDENTIFIER".
That value of "SPRYKER_OAUTH_CLIENT_SECRET" needs to be hashed and placed in spy_oauth_client table in column "secret" in row where identifier is sam as "SPRYKER_OAUTH_CLIENT_IDENTIFIER". Most likely identifier will be "frontend". I'm not sure but maybe you will need to run command:
console setup:init-db
But i'm not 100% sure about that command.
Hash the key using password_hash() function in php with “2y“ algorithm.
After that you should be able to get access token.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 68 Spryker News
- 890 Developer Corner
- 753 Spryker Development
- 83 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random