@skedulo/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

README

yarn global add @skedulo/sdk

What is this repository for?

This repo contains the Software Development Kit for Phoenix / Skedulo

Flags

-u --username   : Username
-p --password   : Password
-v --vendor     : salesforce|salesforce-sandbox
-i --instance   : Instance of phoenix default: `new.skedulo.com`
-t --teamname   : Team Name
--interactive   : Force run chrome in window mode

Example Commands

// Logging into Phoenix ( using chrome headless )
phoenix-login -u username@skedulo.com -p password -v salesforce
phoenix-login --username username@skedulo.com --password password -v salesforce
phoenix-login --username=username@skedulo.com --password=password -v salesforce

// Chrome will pop-up and prompt to fill in missing details
// ( Chrome won't be running headless )
phoenix-login -v salesforce
phoenix-login -u username@skedulo.com -v salesforce
phoenix-login -p password -v salesforce

// Provide all details but don't run chrome headless
// Useful when debugging the login process ( if something is weird )
phoenix-login -u username@skedulo.com -p password --interactive -v salesforce

// Login to another instance of phoenix
phoenix-login -i localhost:8888 -v salesforce
phoenix-login -i new.skedulo.com -u username@skedulo.com -p password -v salesforce

Once succesfully logged in, the credentials are printed on the console. These are some examples of things you could do

phoenix-login -u username@skedulo.com -p password -v salesforce > ./auth.json

# Get access to auth vars directly
phoenix-login -u username@skedulo.com -p password -v salesforce | jq '.sfdc.access_token'
phoenix-login -u username@skedulo.com -p password -v salesforce | jq '.skedApiAccessToken'
phoenix-login -u username@skedulo.com -p password -v salesforce | jq '.idToken'

# Copy relevant var into clipboard ( On OSX )
phoenix-login -u username@skedulo.com -p password -v salesforce | jq '.skedApiAccessToken' | pbcopy

Logging in to standalone

// Logging into a standalone instance
phoenix-login -v standalone -t harish-chat -u username -p password
phoenix-login --vendor=standalone --teamname=harish-chat --username=username --password=password

// Logging into a standalone instance interactively
phoenix-login -v standalone -t harish-chat -u username -p password --interactive

At any point if the username of password is not provided inline as an argument, the tool will open up in interactive mode and prompt the user to enter the username and password in the chosen vendors login page.

Who do I talk to?

  • Harish
  • Team Nuclear

Readme

Keywords

none

Package Sidebar

Install

npm i @skedulo/sdk

Weekly Downloads

3

Version

1.0.9

License

UNLICENSED

Unpacked Size

87.6 kB

Total Files

13

Last publish

Collaborators

  • jameswarr
  • hha2024
  • tdaosked
  • trangpham
  • skedadmin
  • ghilton
  • son.tieu
  • adtennant
  • willthames_sked
  • ehollonds
  • skedsondang
  • cong.le
  • harryj-skedulo
  • drsk
  • sgassmann
  • sophiewheeler
  • jnovak
  • antran.skedulo
  • sked-dev-uk
  • yurychislov
  • clucas-skedulo
  • zoestewart
  • mnpetersen-skedulo
  • son.bui
  • davidsetyanugraha
  • nedmules
  • dsavagesked
  • leto-skedulo
  • lap.tran
  • tomwright
  • james.bassett
  • bbeuth-skedulo
  • abyerly
  • patsimonsked
  • krystlel
  • edwardsmatt
  • hoangmphung
  • alopez
  • jahrens
  • skeddevvn
  • codeth
  • cuong_skedulo