GithubHelp home page GithubHelp logo

Comments (8)

fudiwei avatar fudiwei commented on June 2, 2024 1

Thank you very much.

It looks like the API models of requests and responses are basically the same. But I still need to take a moment to check whether just adding a new endpoint is enough. If not, I will create a new package to handle this.

from dotnetcore.skit.flurlhttpclient.bytedance.

fudiwei avatar fudiwei commented on June 2, 2024

https://open.douyin.com/platform/doc?doc=docs/openapi/account-permission/douyin-get-permission-code

from dotnetcore.skit.flurlhttpclient.bytedance.

wangyiwu avatar wangyiwu commented on June 2, 2024

https://open.douyin.com/platform/doc?doc=docs/openapi/account-permission/douyin-get-permission-code

Sorry, Can I talk english with you?
I mean, Can i use this library for Tiktok (tiktok.com), global version of Douyin

from dotnetcore.skit.flurlhttpclient.bytedance.

fudiwei avatar fudiwei commented on June 2, 2024

This SDK is designed to access the Douyin Open Platform API (also includes some other ByteDance's products).

I'm not sure if Tiktok has open platform API like Douyin.

If you have an official documentation, please post it.

from dotnetcore.skit.flurlhttpclient.bytedance.

wangyiwu avatar wangyiwu commented on June 2, 2024

This SDK is designed to access the Douyin Open Platform API (also includes some other ByteDance's products).

I'm not sure if Tiktok has open platform API like Douyin.

If you have an official documentation, please post it.

This is official doc of Tiktok global: https://developers.tiktok.com/doc/overview/

from dotnetcore.skit.flurlhttpclient.bytedance.

wangyiwu avatar wangyiwu commented on June 2, 2024

w package to han

Thanks you very much.

from dotnetcore.skit.flurlhttpclient.bytedance.

fudiwei avatar fudiwei commented on June 2, 2024

Sorry for making you wait on this reply. I hope you weren’t waiting for too long.

I created a new package SKIT.FlurlHttpClient.ByteDance.TikTokGlobal to handle this.

Because I don't have a TikTok developer account for testing, so I'm not sure it will work well. I'd like to get some feedback from you.

Unfortunately, I don't have much free time to add much documentation, especially the non-Chinese version. I'm posting sample code which should give you enough idea on how to use it.

using SKIT.FlurlHttpClient.ByteDance.TikTokGlobal;
using SKIT.FlurlHttpClient.ByteDance.TikTokGlobal.Models;

var options = new TikTokClientOptions()
{
    ClientKey = "Your Client Key",
    ClientSecret = "Your Client Secret"
};
var client = new TikTokClient(options);

var request = new OAuthAccessTokenRequest()
{
    Code = "Your Code"
};
var response = await client.ExecuteOAuthAccessTokenAsync(request);
if (response.IsSuccessful())
{
    Console.WriteLine("AccessToken: " + response.Data.AccessToken);
}
else
{
    Console.WriteLine("ErrorCode: " + response.Data?.ErrorCode);
}

You can continue to leave a message here if you have more questions.

from dotnetcore.skit.flurlhttpclient.bytedance.

wangyiwu avatar wangyiwu commented on June 2, 2024

Thanks so much. I will test it and feed back.

from dotnetcore.skit.flurlhttpclient.bytedance.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.