예제 #1
0
        public static Task <IEnumerable <ContentItemEx> > LoginAndGetChildren(string id, ChannelLoginInfo info)
        {
            var content = new ByteArrayContent(AccessInfoEncryptor.Encrypt(JsonConvert.SerializeObject(info)));

            return(RestService.Instance.PostContentDirectoryDataAsync <IEnumerable <ContentItemEx> >("content/" + id, content));
        }
        public static Task <CredentialsValidation> ValidateCredentials(string channelID, ChannelLoginInfo loginInfo)
        {
            var content = new ByteArrayContent(AccessInfoEncryptor.Encrypt(JsonConvert.SerializeObject(loginInfo)));

            return(RestService.Instance.PostContentDirectoryDataAsync <CredentialsValidation>("settings/" + channelID + "/credentials/validation", content));
        }