getAccountSubscription
curl --request GET \
--url https://alphainsider.com/api/getAccountSubscription \
--header 'Authorization: <authorization>'const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://alphainsider.com/api/getAccountSubscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getAccountSubscription"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getAccountSubscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/getAccountSubscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"account_subscription_id": "oPajv9WU3wtwtBYLQxm4z",
"user_id": "user_1",
"status": "active",
"product_id": "7wswTAd1xbDAEQkPhbBn6",
"type": "standard",
"timeframe": "month",
"level": 0,
"name": "Standard Account Subscription",
"next_product_id": "7wswTAd1xbDAEQkPhbBn6",
"next_type": "standard",
"next_timeframe": "month",
"next_level": 0,
"next_name": "Standard Account Subscription",
"invoice_id": null,
"limits": {
"new_order": 50,
"new_post": 100,
"like": 100,
"max_sessions": 100,
"max_api_tokens": 50,
"max_strategies": 5,
"max_subscriptions": 10,
"max_open_orders": 100,
"max_bots": 0
},
"end_date": null,
"updated_at": "2024-10-08T16:30:00.062Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Subscriptions
getAccountSubscription
Get account subscription.
GET
/
getAccountSubscription
getAccountSubscription
curl --request GET \
--url https://alphainsider.com/api/getAccountSubscription \
--header 'Authorization: <authorization>'const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://alphainsider.com/api/getAccountSubscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getAccountSubscription"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getAccountSubscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/getAccountSubscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"account_subscription_id": "oPajv9WU3wtwtBYLQxm4z",
"user_id": "user_1",
"status": "active",
"product_id": "7wswTAd1xbDAEQkPhbBn6",
"type": "standard",
"timeframe": "month",
"level": 0,
"name": "Standard Account Subscription",
"next_product_id": "7wswTAd1xbDAEQkPhbBn6",
"next_type": "standard",
"next_timeframe": "month",
"next_level": 0,
"next_name": "Standard Account Subscription",
"invoice_id": null,
"limits": {
"new_order": 50,
"new_post": 100,
"like": 100,
"max_sessions": 100,
"max_api_tokens": 50,
"max_strategies": 5,
"max_subscriptions": 10,
"max_open_orders": 100,
"max_bots": 0
},
"end_date": null,
"updated_at": "2024-10-08T16:30:00.062Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}⌘I