Example #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));
        }
Example #2
0
        public static FollwitResponse UpdateEpisodeState(FollwitEpisode data, FollwitWatchStatus status)
        {
            string url  = String.Format(FollwitConfig.URL.WatchEpisode, MapToURL(status));
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <FollwitResponse>(json));
        }
Example #3
0
        public static TraktResponse ScrobbleEpisode(TraktEpisodeScrobbleData data, TraktWatchStatus status)
        {
            string url  = String.Format(TraktConfig.URL.ScrobbleShow, MapToURL(status));
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <TraktResponse>(json));
        }
Example #4
0
        public static FollwitResponse TestAccount(FollwitAccountTestData data)
        {
            string json = CallAPI(FollwitConfig.URL.TestAccount, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <FollwitResponse>(json));
        }