Admin Api access
-
Create API key from Settings->system->integrations
-
Get access token from
http://localhost:8000/api/oauth/token
POST request, body with following params
{
“client_id”: “Access key ID”,
“client_secret”: “Secret access key”,
“grant_type”: “client_credentials”
}
- Call api
http://localhost:8000/api/v1/hatslogic/save-user-device-id
GET method with header param
Authorization: Bearer + “access_token from api/oauth/token API response”
1 „Gefällt mir“
Where did you get this?
The admin API route authentication is mentioned in Shopware 6 basic developer training, but the documentation website has changed a lot since the video has been recorded.
Using documentation search and navigation only points me to the reference, don’t find the actual documentation with the example code.
Could you (or somebody else) please provide a link to the current documentation?