Skip to content

Nebur23/TikTok_api_docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 

Repository files navigation

Tikconnect - TikTok API Integration

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.

Project Overview

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.

API Integrations

1. Posting Videos

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.

2. Retrieving Posts

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.

3. Retrieving Profile Data

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.

4. Retrieving Save Data

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.

Constraints

Sending Messages

Unfortunately, sending messages to TikTok users is not supported due to TikTok's API restrictions. This functionality is currently not allowed in the API.

SSL Requirement

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.

Links

  • Tikconnect - The deployed application for Tikconnect.

Contributing

Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are always welcome!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors