1.0.9 • Published 6 years ago
@skedulo/sdk v1.0.9
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
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.0
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago