Getting connected
Request flow
Obtain an authorization token from the
AuthTokenendpoint (see below)Supply an
Authorizationheader with contentBearerfollowed by the token obtained in step 1.
Example:
curl -D- -X GET -H "Authorization: Bearer {token}" -H "Content-Type: application/json" "https://m.fascard.com/api/Machine"Token expiration
Note that a token will expire after some period of time. If you send a request with an expired token then we will return a 401 Unauthorized (= unauthenticated), and in that case you can simply resubmit the username and password to the AuthToken endpoint to request a new token.
Obtain Token
Pass username and password as body to API GET call:
Request body
Response
The response will be a unique token identifier for your user/password login:
POST /api/AuthToken