Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Examples

bademux edited this page Jan 5, 2014 · 6 revisions

Integration Tests

Note:

Feedly Console Manager

Simple console application that allows you to sign in and manage your Feedly account.

AndRSS - Simple Android application

AndroidLoginActivity based on WebKit that allows you to sign in and manage your Feedly account.

HowToUse:

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);
  }

Some reusable Utils for Andriond Applications:

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.