public static MapsAPI Create(string apiKey) { var api = RemotePoint.Create <MapsAPI>("https://maps.googleapis.com"); api.apiKey = apiKey; return(api); }
internal static T Create <T>(string authString) where T : APIBase { var api = RemotePoint.Create <T>("https://api.github.com"); api.authString = authString; return(api); }
public static TranslateAPIInterface Create(string clientId, string clientSecret) { var api = RemotePoint.Create <TranslateAPIInterface>("https://openapi.naver.com"); api.commonHeaders = new Dictionary <string, string>() { ["X-Naver-Client-Id"] = clientId, ["X-Naver-Client-Secret"] = clientSecret }; return(api); }