GithubHelp home page GithubHelp logo

ericng98 / cc16-oauth-attachment-utility Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jnerius/cc16-oauth-attachment-utility

0.0 2.0 0.0 15 KB

Demonstration Utility for ServiceNow CreatorCon 2016 OAuth Workshop

Home Page: http://knowledge.servicenow.com/creatorcon.html

JavaScript 99.57% Shell 0.29% Batchfile 0.14%

cc16-oauth-attachment-utility's Introduction

ServiceNow Attachment Demo Utility

This is a command line utility written in Node.js to demonstrate the capabilities of OAuth and the ServiceNow REST Attachment API at CreatorCon 2016.

The core functionality of this app is intentionally centralized in snattach.js (vs. building out modules) to make it easier to demonstrate the functionality.

#Prerequisites

Installing

 $ git clone https://github.com/jnerius/cc16-oauth-attachment-utility.git
 $ cd cc16-oauth-attachment-utility
 $ npm install

Configuration

config.js

Update the config.instanceURL variable to point at your ServiceNow instance.

config.instanceURL = 'https://<instance>.service-now.com/';

Usage

Logging in using OAuth

Issue the following command and then follow the prompts to provide the requested values: Username, Password, OAuth Client ID, OAuth Client Secret

$ snattach login oauth

Manually refreshing OAuth Access Token

$ snattach login oauth refresh

Retrieve a list of attachments for a record

$ snattach list <table> <record_sys_id>

Download an attachment

$ snattach download <attachment_sys_id>

cc16-oauth-attachment-utility's People

Contributors

jnerius avatar

Watchers

James Cloos avatar Eric Ng 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.