wechaty / summer

Summer of Wechaty (SoW) is a program for connecting students with the Wechaty community for coding & tech writing.
https://wechaty.github.io/summer-of-wechaty
Apache License 2.0
31 stars 12 forks source link

Try to build a wechaty-TIKTOK-puppet : Regular technical report(01/11/2021-05/11/2021) #86

Open YuSihe88 opened 2 years ago

YuSihe88 commented 2 years ago

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

  1. Apply to the power of the tiktok development platform, get the necessary client secret and client key.
  2. 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

  1. Temporarily skip the event subscription and use the sandbox environment for interface call and function debugging
  2. Change an intranet penetration method and try to deploy webhook again

Next week's plan:

  1. Continue to look at the source code and learn to call the interface
  2. Obtain access in the sandbox environment access_Token and client_token
  3. Try to call an interface successfully
hcfw007 commented 2 years ago

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?

hcfw007 commented 2 years ago

Also I was requested to make a plan for your upcoming work. Do you prefer f2f talk or IM messages?

YuSihe88 commented 2 years ago

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:

At present, both intranet penetration methods have tried and successfully obtained a domain name:

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❤️

huan commented 2 years ago

@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:

  1. 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);
  2. 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.)
YuSihe88 commented 2 years ago

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 ❤️