League Apps API Docs: http://leagueapps.com/api/
composer intall guzzlehttp/guzzle web-token/jwt-frameworkcomposer intall web-token/jwt-frameworkdefine( 'LEAGUE_APPS_SITE_ID', 'YOUR_SITE_ID' ); // found in the url of your LA site
define( 'LEAGUE_APPS_PRIVATE_KEY_ID', 'YOUR_PRIVATE_KEY_ID' ); // generated in the LA admin
define( 'LEAGUE_APPS_PRIVATE_KEY_DIR', 'path/to/keys/' );- Uses built in WordPress HTTP API request functions
wp_remote_postwp_remote_getwp_remote_retrieve_response_codewp_remote_retrieve_body
- Uses WordPress transients to cache the responses - cache time is 7 days
get_transientset_transient
Note to future self: turn this into a plugin