Profile Loader
Code Example
// JavaScript
var $REST = require("gd-sprest");
// Get the current user's profile
$REST.ProfileLoader().getUserProfile().execute(function(profile) {
// Code goes here
});
// TypeScript
import { ProfileLoader } from "gd-sprest";
// Get the Profile Loader
ProfileLoader()
// Get current user's profile
.getUserProfile()
// Execute the request
.execute(profile => {
// Code goes here
});
Reference the User Profile Interface for the result type.