コード例 #1
0
        public static Task<ServiceResponse<TwitterAuthResponse>> Login(
            Twitter twitterInfo,
            string applicationId,
            string apiKey,
            IRestClient restClient)
        {
            var request = new TwitterAuthRequest () 
            {
                authData = new AuthData () 
                {
                    twitter = twitterInfo
                }
            };

            restClient.AddHeader ("X-Parse-Application-Id", applicationId);
            restClient.AddHeader ("X-Parse-REST-API-Key", apiKey);

            return restClient.PostAsync<TwitterAuthResponse>("https://api.parse.com/1/users", request, Format.Json);
        }
コード例 #2
0
        public static Task <ServiceResponse <TwitterAuthResponse> > Login(
            Twitter twitterInfo,
            string applicationId,
            string apiKey,
            IRestClient restClient)
        {
            var request = new TwitterAuthRequest()
            {
                authData = new AuthData()
                {
                    twitter = twitterInfo
                }
            };

            restClient.AddHeader("X-Parse-Application-Id", applicationId);
            restClient.AddHeader("X-Parse-REST-API-Key", apiKey);

            return(restClient.PostAsync <TwitterAuthResponse>("https://api.parse.com/1/users", request, Format.Json));
        }