Files
tnb.server/common/Tnb.CollectiveOAuth/Config/AuthSources/TwitterAuthSource.cs
2023-03-13 15:00:34 +08:00

39 lines
778 B
C#

using JNPF.Extras.CollectiveOAuth.Enums;
namespace JNPF.Extras.CollectiveOAuth.Config;
/// <summary>
/// Twitter.
/// </summary>
public class TwitterAuthSource : IAuthSource
{
public string authorize()
{
return "https://api.twitter.com/oauth/authenticate";
}
public string accessToken()
{
return "https://api.twitter.com/oauth/access_token";
}
public string userInfo()
{
return "https://api.twitter.com/1.1/users/show.json";
}
public string revoke()
{
throw new System.NotImplementedException();
}
public string refresh()
{
throw new System.NotImplementedException();
}
public string getName()
{
return DefaultAuthSourceEnum.TWITTER.ToString();
}
}