You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
867 B

2 years ago
using com.alibaba.openapi.client;
using com.alibaba.openapi.client.entity;
using com.alibaba.openapi.client.policy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NetSdkClient.sdk
{
public class APIFacade
{
private ClientPolicy clientPolicy;
public APIFacade(ClientPolicy clientPolicy)
{
this.clientPolicy = clientPolicy;
}
private SyncAPIClient getAPIClient()
{
return new SyncAPIClient(clientPolicy);
}
public AuthorizationToken getToken(string code)
{
return getAPIClient().getToken(code);
}
public AuthorizationToken refreshToken(String refreshToken)
{
return getAPIClient().refreshToken(refreshToken);
}
}
}