Back to project page dw2020.
The source code is released under:
Apache License
If you think the Android project dw2020 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fivehundredpx.api.auth; //from w ww. jav a 2 s . c o m import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import java.util.ArrayList; public class PlusAuthProvider extends XAuthProvider { private String plusToken; public PlusAuthProvider(String plusToken) { super(); this.plusToken = plusToken; } protected ArrayList<NameValuePair> buildParameters(OAuthParameters params) { ArrayList<NameValuePair> tuples = new ArrayList<NameValuePair>(); tuples.add(new BasicNameValuePair(OAuthConstants.MODE, "google_oauth2_auth")); params.put(OAuthConstants.MODE, "google_oauth2_auth"); tuples.add(new BasicNameValuePair(OAuthConstants.X_TOKEN, plusToken)); params.put(OAuthConstants.X_TOKEN, plusToken); return tuples; } }