39 lines
758 B
C#
39 lines
758 B
C#
using JNPF.Extras.CollectiveOAuth.Enums;
|
|
|
|
namespace JNPF.Extras.CollectiveOAuth.Config;
|
|
|
|
/// <summary>
|
|
/// 饿了么.
|
|
/// </summary>
|
|
public class ElemeAuthSource : IAuthSource
|
|
{
|
|
public string authorize()
|
|
{
|
|
return "https://open-api.shop.ele.me/authorize";
|
|
}
|
|
|
|
public string accessToken()
|
|
{
|
|
return "https://open-api.shop.ele.me/token";
|
|
}
|
|
|
|
public string userInfo()
|
|
{
|
|
return "https://open-api.shop.ele.me/api/v1/";
|
|
}
|
|
|
|
public string revoke()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string refresh()
|
|
{
|
|
return "https://open-api.shop.ele.me/token";
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return DefaultAuthSourceEnum.ELEME.ToString();
|
|
}
|
|
} |