예제 #1
0
        public static void Send_CrossRefAniDBTrakt(CrossRef_AniDB_TraktV2 data, string animeName)
        {
            if (!ServerSettings.WebCache_Trakt_Send)
            {
                return;
            }

            string uri = string.Format(@"http://{0}/api/CrossRef_AniDB_Trakt", azureHostBaseAddress);

            CrossRef_AniDB_TraktInput input = new CrossRef_AniDB_TraktInput(data, animeName);
            string json = JSONHelper.Serialize <CrossRef_AniDB_TraktInput>(input);

            SendData(uri, json, "POST");
        }
예제 #2
0
        public static void Send_CrossRefAniDBTrakt(CrossRef_AniDB_TraktV2 data, string animeName)
        {
            if (!ServerSettings.WebCache_Trakt_Send) return;

            string uri = string.Format(@"http://{0}/api/CrossRef_AniDB_Trakt", azureHostBaseAddress);

            CrossRef_AniDB_TraktInput input = new CrossRef_AniDB_TraktInput(data, animeName);
            string json = JSONHelper.Serialize<CrossRef_AniDB_TraktInput>(input);
            SendData(uri, json, "POST");
        }