GithubHelp home page GithubHelp logo

share_push_demo's Introduction

Demonstration of the SHARE Push API

===============

This code is an example of how a provider for content for the SHARE notification service would push content to be included in the notification stream.

Right now, the data is accepted in the same schema output by the SHARE otification system, specified on the main page's github wiki.

Running the demonstration

  • Fork this project and clone your own local repo
  • Register an API key on the share-dev site
    • Create an account and sign in
    • In the upper right hand corner, click the gear labeled "settings"
    • On the left hand menu, click "Configure API Keys"
    • Give your new key a name, and create a new API key by clicking "Create New Key"
  • In your example pusher repository, create a file in the settings directory named local.py
  • in the file local.py, add a line with your OSF API Key credientials like so: OSF_API_AUTH = ('my_label', 'my_long_api_key')
  • From within a virtual enviornment, run pip install -r requirements.txt
  • Run the example pusher with python example_pusher.py
  • Check out the share notification stream to see your pushed content

share_push_demo's People

Contributors

erinspace avatar

Watchers

 avatar James Cloos avatar

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.