Name: android-pdk
Owner: Pinterest
Description: Pinterest Android SDK
Created: 2015-07-21 20:48:00.0
Updated: 2018-05-10 10:55:57.0
Pushed: 2018-04-14 09:18:54.0
Homepage: https://developers.pinterest.com/docs/sdks/android/
Size: 357
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The PinterestSDK for Android will allow you to authenticate an account with Pinterest and make requests on behalf of the authenticated user. For details on the supported endpoint, visit the Pinterest API.
Go to Android Studio | New Project | Minimum SDK
Select “API 11: Android 3.0” or higher and create your new project.
After you create a new project, go to File > New > New Module
Select “Import .JAR or >AAR Package”
Enter the path to .AAR file downloaded from this repo.
Under File > Project Structure, add pdk module as a dependency for your Project
Add the following as a dependency in build.gradle file
ile 'com.mcxiaoke.volley:library:1.0.+'
Go to Android Studio | New Project | Minimum SDK
Select “API 11: Android 3.0” or higher and create your new project.
After you create a new project, go to File > New > New Module
Select “Import Existing Project as Module”
Enter the path to source code downloaded from this repo.
Add the following as a dependency in build.gradle file
ile 'com.mcxiaoke.volley:library:1.0.+'
Visit the Pinterest Developer Site and register your application. This will generate an appId for you which you will need in the next steps.
Before you make any calls using the PDKClient in your app, you will need to configure it with your appId:
Add the following lines in “onCreate” method of your Launch Activity
ports
rt com.pinterest.android.pdk.PDKCallback;
rt com.pinterest.android.pdk.PDKClient;
rt com.pinterest.android.pdk.PDKException;
rt com.pinterest.android.pdk.PDKResponse;
side onCreate
lient.configureInstance(this, YOUR_APP_ID);
lient.getInstance().onConnect(this);
Add the following line outside the application tag in the manifest file.
s-permission android:name="android.permission.INTERNET"/>
And add the following Intent filter to your Login Activity
ent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="pdk[YOUR_APP_ID]" />
tent-filter>
If your APP ID is 1234, scheme would be “pdk1234”
The PDK comes with a Example App. Just clone this repo, add your AppId, and run to get started.
For the full documentation and more information about the Pinterest Developer Platform, please visit: