Skip to content

ajwhatling-wk/workiva-api-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workiva-api-consumer

Demonstrates a very simple use case for importing data from github and dumping it into a Workiva spreadsheet.

How to use

  1. Install Node v6.x (not tested on any other version).
  2. Run npm install.
  3. Get credentials for workiva and github.
  • For Workiva, you need to be able to create OAuth2 grants.
  • For Github, head to the OAuth2/Developer Applications page and create a new app. You do not need to provide an Authorization Callback URL.
  1. In bash...
  • export WORKIVA_API_URL=http://whatever.api.you/want/to/use
  • export WORKIVA_AUTH_TOKEN=Your-Workiva-Oauth2-grant-token
  • export GH_CLIENT_ID=client-id-from-your-github-developer-application
  • export GH_CLIENT_SECRET=client-secret-from-your-github-developer-application
  1. Then do npm start.
  2. Open Postman or any other HTTP request app and hit the /sendToWorkiva endpoint with a payload like this...
{
    "github_owner": "nodejs",
    "github_repo": "node"
}

Open wk-dev Spreadsheets and look for a new sheet named something like workiva-api-consumer-sheet-(some large decimal).

About

Node JS app to push to workiva API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published