This repository has been archived by the owner on Mar 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Examples
bademux edited this page Jan 5, 2014
·
6 revisions
- CredentialIntegrationTest - SignIn code sample
- IntegrationTestsSimple - Simple tests that don't require initial data
- IntegrationTestsWithInitialData - the rest
- Tests require an valid WordPress Account. Please edit test_credential.properties
- It is no possible to run test on production as Feedly servers don't support authorization with WordPress yet. see DevFeedly, DevFeedlyAuthorizationCodeFlow for more info.
Simple console application that allows you to sign in and manage your Feedly account.
AndroidLoginActivity based on WebKit that allows you to sign in and manage your Feedly account.
Pass requestUrl and fire Login Activity
//requestUrl should start with FeedlyOAuthConstants.REDIRECT_URI_LOCAL
//..
Intent intend = new Intent(target, FeedlyWebAuthActivity.class);
intend.putExtra(REQUEST_URL_TAG, requestUrl);
this.startActivityForResult(intend, FeedlyWebAuthActivity.REQUEST_CODE);
Call Back method to get the ResponseUrl form other Activity
@Override
public void onActivityResult(final int requestCode, final int resultCode, final Intent data) {
if (requestCode == FeedlyWebAuthActivity.REQUEST_CODE
&& resultCode == Activity.RESULT_OK) {
//Response Url that contains accessCode
String responseUrl = responseIntent.getStringExtra(RESPONSE_URL_TAG);
// process responseUrl...
return;
}
super.onActivityResult(requestCode, resultCode, data);
}
AndroidDataStoreFactory DataStore Implementation based on SharedPreferences, can be used with Feedly API lib as well as Google API lib FeedlyUtil is the wrapper around FeedlyAuthorizationCodeFlow and Feedly service. It simplifies the code a little bit more.