dotnetopenauth-使用参数搜索提供程序 [英] dotnetopenauth- search providers with parameters
本文介绍了dotnetopenauth-使用参数搜索提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用dotnetopenauth搜索具有搜索参数的odesk提供商.
可以使用PrepareAuthorizedRequest获取过滤的结果吗?
我正在使用:
how can i search odesk providers with search parametres using dotnetopenauth.
can PrepareAuthorizedRequestbe used to get the filtered result?
i am using :
var request = consumer.PrepareAuthorizedRequest(SearchProvidersEndpoint, accessToken, parameters);
var response = consumer.Channel.WebRequestHandler.GetResponse(request);
var body = response.GetResponseReader().ReadToEnd();
var result = XDocument.Parse(body);
return result;
推荐答案
大家好,
我自己找到了解决方案.
使用过的重载函数:
PrepareAuthorizedRequest(SearchProvidersEndpoint,accessToken,参数);
我正在使用参数作为多部分.尝试使用Idictionary< string,string>对我来说很简单.
谢谢.
Hi all,
i got the solution myself.
used overloaded function of:
PrepareAuthorizedRequest(SearchProvidersEndpoint, accessToken, parameters);
i was using parameter as multipart .Tried using Idictionary<string,string> and it worked for me simply.
Thanks.
这篇关于dotnetopenauth-使用参数搜索提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文