Class AuthenticationRequest
Properties
| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| Resource | /token | ||
| Request Method | HTTP POST | ||
| Response format | JSON | ||
| Content Type | application/x-www-form-urlencoded | Yes | Specify this as a "Content-Type" header property |
| Authorization | Basic Base64(consumer-key:consumer-secret) | Yes | Specify this as a "Authorization" header property |
| Request Body | grant_type:client_credentials | Yes | Specify grant_type as client_credentials |
Sample Request
POST /token HTTP/1.1
Host: wag01.eagle.jhapaycenter.com
Authorization: Basic NDl4NG95eDBKa1B.........Yzh5M1ZyZnNlNUVjeklm
Content-Type: application/x-www-form-urlencoded
Content-Length: 29
grant_type: client_credentials
CURL to get generate Access Token
curl -k -X POST https://wag01.eagle.jhapaycenter.com/token -d "grant_type=client_credentials" -H"Authorization: Basic VmZZSEFsblh6Q2hsWmZBZ0EwUTl1VmkzNVR3YTprVHoyUXJfbUVtaVdaZnNKVjlfUFBRZng5cXdh"