Giter Site home page Giter Site logo

eventrobot's People

Contributors

ricalo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

digideskio ziacto

eventrobot's Issues

HTTP requests with expired tokens

  • Respond gracefully to 401 Unauthorized responses.
    • This means that the HTTP components can detect whether the access token has expired and request a new one.

Add HTTP request components

Add components that enable the app to make authenticated HTTP requests. They should provide the following features:

  • Enable the app to make GET requests to a REST endpoint.
  • Inject an authorization header.
  • The component should provide a method with the following signature:
/**
 * Gets one and only one meeting that is about to start
 * (this is kind of fuzzy, I need to provide a better explanation).
 * If more than one meeting is available, the function returns the meeting that is
 * returned by Microsoft Graph.
 * Use something like filter by date > Now, sort by date descending, and top = 1
**/
public function getNextMeeting(ICallback<JsonObject> callback);

Add authentication components

We need authentication components that provide the following features:

  • Authenticate users with work and personal accounts.
  • Detect if the current user has already authenticated.
    • Verify if there are tokens for the user in the data store.
  • Store access and refresh tokens.
    • Preliminary: Use shared preferences.
  • Remove user tokens.
  • Provide a valid, unexpired access token that we can attach to requests. Here's an idea of the interface:
/**
 * Returns an access token for the currently signed in user.
 */
public getAccessToken(ICallback<String> callback)

Add an activity that responds to search intents

The activity should provide the following features:

  • Respond to the following search intent
Ok Google, search my next meeting on [app name]

* Use the authentication components to check if the user has already signed in.
* If the user has not authenticated, the activity should redirect the user to the authentication URL.
Let's check this, probably the activity can just try to get an access token and the authentication components can decide what to do if there is no access token available.

  • The activity must grab the extras provided with the intent, in this example the following string my next meeting.
    • If the string contains next meeting the activity should use the HTTP component to issue a request to get the next meeting from the user's calendar.
    • Otherwise, the activity should say that it didn't understand the request.
  • The activity should display the meeting data that received from the HTTP component.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.