StreamTube adheres to the WordPress REST API standards, facilitating seamless integration and extension with third-party applications. Developers can leverage the REST API to build custom applications.
For comprehensive instructions, please refer to the official WordPress REST API Handbook:
1. API Endpoints
Blog Posts:
Videos:
Upload:
2. Authentication
2.a) Application Passwords:
Create An App Password
Go to your frontend Dashboard.
Navigate to the Account section.
Select App Password.
In the "App name" field, enter a descriptive name for the application you'll be using this password with.
Click the "Add New Application Password" button.
Save the generated password in a secure location. It will not be displayed again.
Manage App Passwords via REST API
2.b) Bearer Access Token
You can also authenticate using a Bearer Token.
Generate an Access Token:
Access your frontend Dashboard.
Go to Account and select Access Token.
Enter your password and click "Create a token" button.
Remember to save the generated token in a safe place, as it will not be shown again.
// Generate an access token using command line
$ curl -X POST "https://domain.com.com/wp-json/jwt-auth/v1/token" \
-H "Content-Type: application/json" \
-d '{"username": "my_user", "password": "my_wp_password"}'