TTWrite API Documentation: create_swift Endpoint

This document provides detailed information on creating, managing, and interacting with swifts in the TTWrite API.


Functionalities of the create_swift Endpoint

1. How It Works

Swifts (stories) are created in a step-by-step process:

  1. Upload one media file (image/video).
  2. Publish the swift with optional description.

2. Upload Swift Media

API Endpoint

  • URL: mobile_api/upload_swift_media

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
typeMedia file type (image/video)Example: image
fileMedia file (image or video)Example: swift_media.jpg

3. Publish Swift

API Endpoint

  • URL: mobile_api/publish_swift

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
media_idID of the uploaded media fileRequired field
descriptionOptional text descriptionExample: My new swift!

4. Delete Swift

API Endpoint

  • URL: mobile_api/delete_swift

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
swidSwift hash IDExample: zpad2HalsbsLGhdI

5. Get My Swifts List

API Endpoint

  • URL: mobile_api/get_swifts

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...

6. Register Swift View

API Endpoint

  • URL: mobile_api/reg_swift_view

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
user_idSwift user IDExample: 12345