Auth Tokens – Restricting REST API Data

The following guide is for developers using the WP Video Memberships and pulling REST API JSON data for your videos using a third party app (iOS, Android, etc). If you are not using WP Video Memberships, this guide does not apply

Get your Client ID and Secret

Within the WordPress Dashboard, go to WP Videos -> API Keys. Find the information under the WPVS REST API section.

Your Client ID and Secret will automatically be generated for you.

Authentication – Getting An Auth Token

Once you have your Client ID and Secret, you will need to send a POST request to:

{your-domain}/wp-json/wpvs-memberships/v1/auth

You need to include your Client ID and Secret in your POST Headers like so:

WPVS-ClientID: {your-client-id}
WPVS-Secret: {your-secret}

On a successful request, the endpoint will return a token variable in JSON format. Save this token for getting user Access Tokens.

Next Steps

  • Getting Access Tokens
  • Making API Requests