1 Answers1

0

You should do some reading in the ZF-OAuth documentation. To request a token you send a POST request with user credentials and client id to the oauth endpoint:

So for example a POST request to your base url for /oauth with the following json data:

{
    "grant_type": "password",
    "password": "1234abcd",
    "username": "john.doe@example.com",
    "client_id": "MyClient"
}
Wilt
  • 41,477
  • 12
  • 152
  • 203