Try to build a wechaty-TIKTOK-puppet : Regular technical report(01/11/2021-05/11/2021)
The work completed last week includes: 1.Solve the problem of fixed domain name: specify the subdomain name with local tunnel to achieve the purpose of Intranet penetration 2. Apply to the power of the tiktok development platform, get the necessary client secret and client key. 3. Use postman to successfully monitor the event and return the random number required by the platform
Current problems: 1.Tiktok can quickly resolve and return to the random number required by the platform, but it can not deploy URL successfully to webhook in the development platform.
Current solutions: 1, Tiktok development platform negotiations 2. Temporarily skip the event subscription and use the sandbox environment for interface call and function debugging 3. Change an intranet penetration method and try to deploy webhook again
Next week's plan:
- Continue to look at the source code and learn to call the interface
- Obtain access in the sandbox environment access_Token and client_token
- Try to call an interface successfully
Hola. I just got informed I will be your mentor. So far I'm not very familiar with your work. Do you have a git repo so I can read some of your code?
Also I was requested to make a plan for your upcoming work. Do you prefer f2f talk or IM messages?
Work to be done throughout the internship: https://k0auuqcihb.feishu.cn/docs/doccn8JlRbeHDcmoKZTVCdSsx5f I have completed my first task, and I am going to do the second :Try to build a Wechaty-TIKTOK-puppet In order to describe my current situation more clearly, I will briefly describe the three steps of building puppet planned by Mr. Li Zhuohuan in the course: Three steps to build a puppet 1、 Dingdong based on TIKTOK public platform 1, open the tiktok and develop public platform documents. (1) Enter the wechat public account test number application system to enable developers to develop with zero threshold ✅ (firstly, get a TIKTOK account, test number management,➡️ easy to go through the development process). (2) URL: a webhook callback needs to be filled in // (this step mainly requires a fixed domain name) ✅ Solution:
- ngrok: pay to get a fixed callback
- Local tunnel: the machine is exposed to the world. Given a fixed address, the program can get this address in different places
At present, both intranet penetration methods have tried and successfully obtained a domain name:
- Localtunnel a given domain name can specify a subdomain to generate a stable two level domain name (tiktok webhook is not available).
- ngork can only generate a random URL address, and the terminal window cannot be closed during use (currently being used) (The function that can be realized at present is to send a post request to the generated domain by the shaking platform, then the domain name links the express service, and responds to the request, returns tiktok key.) (3) Call the interface to get the user authorization code (in progress) (4) Obtain the access certificate of the third-party interface call authorized by the user_ Token (in progress) (5) Realize the function of "dingdongbot" (to be developed) 2、 Encapsulate logic flow into puppet (to be developed) 3、 Use wechaty to add our newly encapsulated puppet (to be developed)
PS:at present, the code is saved locally. In addition, I prefer face-to-face communication Please feel free to point out any problems in the above described process❤️
@YuSihe88 It's great to hear from you and know that you are going to build a KikTok puppet for the community!
I have two comments for you as you are more likely to continue working based on the GitHub Wechaty community repos/issues:
- Please post all the docs of the project as markdown on the Issue so that everyone can read it if you want to develop your project based on the Wechaty community (do not use link like yours which requires authentication);
- Please always make sure to format your docs correctly, so that others can easy to read your post. (for example, this post is not correct because paragraph point 2. and 3. are indented, which should not.)
It's a great honor to get your advice! I will pay attention to the points you mentioned to me 😊 In the future, I will submit the weekly report to the specified position according to the arrangement ⬇️ https://github.com/juzibot/intern/issues/3 Also, I will continue to look forward to your visit and guidance ❤️