Plugin: Xtream Codes
To successfully use the API, you have to import your server IP first into the whitelist.
You can do that in XtreamCodes (General Settings -> API Settings)
IP: 127.11.22.33
On user sign in plugin set two additional session variables:
$_SESSION['xtream_username']
$_SESSION['xtream_password']
In event of you use aMember REST API module then plugin add new endpoint:
api/xtream-codes-line?_key=SECRETKEY&_filter[user_id]=1832