39 lines
759 B
C#
39 lines
759 B
C#
using JNPF.Extras.CollectiveOAuth.Enums;
|
|
|
|
namespace JNPF.Extras.CollectiveOAuth.Config;
|
|
|
|
/// <summary>
|
|
/// Pinterest.
|
|
/// </summary>
|
|
public class PinterestAuthSource : IAuthSource
|
|
{
|
|
public string authorize()
|
|
{
|
|
return "https://api.pinterest.com/oauth";
|
|
}
|
|
|
|
public string accessToken()
|
|
{
|
|
return "https://api.pinterest.com/v1/oauth/token";
|
|
}
|
|
|
|
public string userInfo()
|
|
{
|
|
return "https://api.pinterest.com/v1/me";
|
|
}
|
|
|
|
public string revoke()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string refresh()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return DefaultAuthSourceEnum.PINTEREST.ToString();
|
|
}
|
|
} |