如果你在这里发布你的代码会有帮助,但基本上querystring?access_token =应该工作。您是否使用客户端或服务器端身份验证?
服务器端认证实际上有一个额外的步骤。您需要将“代码”换成“代币”。
之后,它只是在查询字符串中插入访问令牌。我有一个积极的工作项目,有这个WCF合同签名:
[ServiceContract]
public interface IPicasaWeb
{
[OperationContract]
[WebInvoke(UriTemplate = "data/feed/api/user/{userId}?kind=photo&alt=json&access_token={accessToken}&max-results={perPage}&start-index={startIndex}&access={access}",
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
Method="GET")]
Photos GetPhotos(string userId, string accessToken = null, int startIndex = 1, int perPage = 30, string access = "visible");
}