Authentication for FreeWheel Demand APIs

Authentication

FreeWheel's Demand APIs use standard OAuth authentication and authorization. FreeWheel issues users a User ID and Password to obtain a bearer-grant OAuth Token.

📘

Bearer tokens are case sensitive.

Generate Access Token

curl -X POST \
  https://api.freewheel.tv/auth/token \
  -H 'accept: application/json' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -d 'grant_type=password&username=johndoe&password=A3ddj3w'
{   
   "access_token":"DEhfruA7rl6rWdrdjImUOWzSqhwku1Ahdk3XTUasdGB",
   "token_type":"Bearer",
   "created_at":1468982119,
   "expires_in":604800
}

Retrieve Access Token

curl -X GET \
  https://api.freewheel.tv/auth/token/info \
  -H 'accept: application/json' \
  -H 'authorization: Bearer MY_OAUTH_ACCESS_TOKEN'
{  
   "user_id":6092302,
   "expires_in_seconds":604800,    "created_at":1468982119
}