ping-one-connector
v1.0.1
Published
'A libray for connecting to PingOne API'
Downloads
3
Readme
ping-one-connector
A library for connecting to the PingOne API.
Installation
You can install the library via npm:
npm install ping-one-connector
Usage
Importing the library
const { getUsersFromPingOne } = require('ping-one-connector');
Calling the getUsersFromPingOne function
const pingOneApiUrl = 'YOUR_PINGONE_API_URL';
const accessToken = 'YOUR_ACCESS_TOKEN';
async function run() {
try {
const users = await getUsersFromPingOne(pingOneApiUrl, accessToken);
console.log('Users:', users);
} catch (error) {
console.error('Error:', error);
}
}
run();
Replace 'YOUR_PINGONE_API_URL' and 'YOUR_ACCESS_TOKEN' with your actual PingOne API URL and access token respectively.
API
getUsersFromPingOne(pingOneApiUrl, accessToken)
This function retrieves users from the PingOne API.
pingOneApiUrl (string): The URL of the PingOne API.
accessToken (string): The access token required to authenticate the request.
Returns a Promise that resolves to the user data retrieved from the PingOne API.