Tikconnect is an application designed to leverage TikTok's API to provide various functionalities. This README outlines the integration details of the TikTok API and the constraints encountered during the development.
Tikconnect integrates with the TikTok API to offer the following features:
- Posting Videos: Allows users to post videos to their TikTok profiles.
- Retrieving Posts: Fetches recent posts from a TikTok profile and displays them.
- Profile Data: Retrieves and displays basic profile information of the authenticated user.
- Post Data: Retrieves and displays basic post information of the authenticated user.
Endpoint: /post-video
Method: POST
Description: Allows users to upload and post videos to their TikTok profiles.
Request Body:
video: The video file to be uploaded (form-data).
Response:
200 OK: Video posted successfully.400 Bad Request: Invalid request or missing parameters.500 Internal Server Error: Server error.
Endpoint: /get-userVideo
Method: POST
Description: Fetches recent posts from a TikTok profile.
Request Body:
accessToken: OAuth token for authentication.openId: User's OpenID.
Response:
200 OK: List of recent posts.400 Bad Request: Missing parameters.500 Internal Server Error: Server error.
Endpoint: /get-userInfo
Method: POST
Description: Retrieves basic profile information of the authenticated user.
Request Body:
accessToken: OAuth token for authentication.
Response:
200 OK: User profile information.400 Bad Request: Missing parameters.404 Not Found: User data not found.500 Internal Server Error: Server error.
Endpoint: /get-userData-db
Method: POST
Description: Retrieves basic post information of the authenticated user from the database.
Request Body:
openId: User's OpenID.
Response:
200 OK: User post data.400 Bad Request: Missing parameters.404 Not Found: User not found.500 Internal Server Error: Server error.
Unfortunately, sending messages to TikTok users is not supported due to TikTok's API restrictions. This functionality is currently not allowed in the API.
To use the TikTok API, the application must be deployed with an SSL certificate. This means that your application must be accessible over HTTPS (e.g., https://appname.com). Additionally, your app must provide links to its Terms and Conditions and Privacy Policy.
- Tikconnect - The deployed application for Tikconnect.
Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are always welcome!