Start familiarizing yourself
Start familiarising yourself with the Extra Horizon Platform
Example: Creating a new user via the Control Center
Example: Get to know the Extra Horizon API - Fetching a user via the SDK
const { createOAuth1Client } = require('@extrahorizon/javascript-sdk');
retrieveMyUser();
async function retrieveMyUser() {
// Create an OAuth1 client to connect to Extra Horizon
const exh = createOAuth1Client({
host: '<your_exh_host>',
consumerKey: '<your_consumer_key>',
consumerSecret: '<your_consumer_secret>',
});
// Authenticate the client with your user credentials, this will generate new OAuth1 tokens
await exh.auth.authenticate({
email: '<your_user_email>',
password: '<your_user_password>',
});
// Use the client to fetch your user information
const me = await exh.users.me();
console.log('User: ', me)
}Last updated