Coder Social home page Coder Social logo

7geese-nodejs-api-example's Introduction

7Geese API Authentication example in Node.js

7Geese is an enterprise performance management and employee engagement platform. It helps you and your team to track OKRs, give each other recognition and more.

To automatically track the progress of your OKRs in other applications, you might want to write a script for integrating the two services. You might also want to use data in 7Geese on other platforms, like data analysis dashboards.

While 7Geese might decide that your integration is not requested by enough users to develop it using 7Geese’s RESTful APIs. This repository can help you to make it happen!

If there are any questions or issue, please file an Issue or send me a Pull Request. I love every interaction with my projects!

Requirements

  • You need a 7Geese account.
  • Your network must use password authentication.
    • Support for external login providers might be added later. It’s possible using an authorization code grant.

Installation

I assume basic knowledge of Node.js and how to run a project.

After downloading the repository, install all dependencies:

npm install

Register a new application with 7Geese

7Geese supports several authentication methods. For this demo, the authentication with a password will be demonstrated.

First, you need to register a new application at https://app.7geese.com/account/applications/.

Pick the authorization grant type “Resource owner password-based” and the redirect URI “https://localhost:8001”.

You will be given a client ID and a client secret which you should paste into a file .env. An example of this file can be found in this repository and is called .venv.sample.

Check how to show hidden files in your operating system, if you don’t see the example file.

Test the authentication

Additionally, the script requires your email address and password to login. Both should be put into the file .venv.

[email protected]
USER_PASSWORD=I must not use weak passwords!

Execution

To run the script run

npm start

If you need to debug the script, open scr/index.js in you editor.

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.