Esempio n. 1
0
        public static TraktResponse TestAccount(TraktAccountTestData data)
        {
            string url  = TraktConfig.URL.TestAccount;
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <TraktResponse>(json));
        }
 public bool TestCredentials(string username, string password)
 {
     var data = new TraktAccountTestData()
     {
         UserName = username,
         Password = HashPassword(password)
     };
     var resp = TraktAPI.TestAccount(data);
     return resp.Status == "success";
 }
Esempio n. 3
0
 public static TraktResponse TestAccount(TraktAccountTestData data)
 {
     string url = TraktConfig.URL.TestAccount;
     string json = CallAPI(url, JSONUtil.ToJSON(data));
     return JSONUtil.FromJSON<TraktResponse>(json);
 }