v.douyin.com And t zijieimg.com Tiktok official shortening interface generation method

Because of the company's business relationship, I find a way to shorten the interface generation from the tiktok open platform. Two interfaces need to be called here. Packet capturing analysis is as follows:

Tiktok tiktok tiktok SDK currently provides basic capabilities for voice / login / authorization and sharing to vibrate. Tiktok tiktok can be used to log on your application or share pictures or videos to the flare sound by accessing the tiktok SDK.
Tiktok
The third party App can access users' tiktok from the third party App by accessing this function. At present, the content format of the voice is supported by single map, Dotu, single video and multi video. After application for permission, tiktok can share the content and bring topics to the public. In addition, we support to view the visualized shared content consumption data through the management center, and you can continuously optimize and maintain the user side experience based on the data. Tiktok tiktok P.S. shared to vibrate, users need to install 5.2.0 and above vibrato version.

Function introduction

v.douyin.com Shortening the interface api sharing is the third party App access to the function, allowing users to share videos, photos and tiktok short videos from App.

The process of sharing is through cross process communication of resources. So first of all, make sure your App has provided the permissions.

preparation

Before sharing, you have completed the application and configuration process in the access guide by default. If not completed, please refer to the tiktok share sharing SDK guide to complete the configuration.

The steps to realize one-time sharing are as follows:

GET http://vdouyincom.cn/?platform/doc/iOS -Features share / / here is the interface address
Host: open.douyin.com
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8

Return the following parameters:

HTTP/1.1 204 No Content
Server: Tengine
Content-Type: application/json; charset=utf-8
Content-Length: 0
Connection: keep-alive
Date: Sat, 27 Jun 2020 11:54:45 GMT
access-control-allow-headers: Content-Type,Content-Length,Accept-Encoding,X-CSRF-Token,accept,origin,Cache-Control,X-Requested-With,X-USE-PPE,X-TT-ENV
access-control-allow-methods: POST, OPTIONS, GET
access-control-allow-origin: *
x-tt-logid: 202006271954450100150411561CEE176F
server-timing: inner; dur=0
x-tt-trace-host: 01619fd5d44dfa6ec878bef52a737f7ab8f6153d0aae2d1024b6d9ae5d1e63c71b783e80448e86bcf9f05276ea84b475defee77603884c17f8fb9024e95d15750f3599470021729b482d2492516bcfa09b
x-tt-trace-tag: id=03;cdn-cache=miss;type=dyn
server-timing: cdn-cache;desc=MISS,edge;dur=0,origin;dur=12
Via: cache8.cn2484[12,0]
Timing-Allow-Origin: *
EagleId: ddccbdd015932588855948990e

http://v.douyin.com/xxxx 
http://t.zijieim.com/xxx

The process is very clear, specific details can be local capture packet test!

Keywords: Programming SDK xml encoding iOS

Added by mkubota on Sun, 28 Jun 2020 05:33:18 +0300