updateUserInfo
curl --request POST \
--url https://alphainsider.com/api/updateUserInfo \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bio": "<string>",
"youtube": "<string>",
"x": "<string>",
"telegram": "<string>",
"website": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bio: '<string>',
youtube: '<string>',
x: '<string>',
telegram: '<string>',
website: '<string>'
})
};
fetch('https://alphainsider.com/api/updateUserInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/updateUserInfo"
payload = {
"bio": "<string>",
"youtube": "<string>",
"x": "<string>",
"telegram": "<string>",
"website": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/updateUserInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bio' => '<string>',
'youtube' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'website' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/updateUserInfo"
payload := strings.NewReader("{\n \"bio\": \"<string>\",\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"website\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"user_id": "user_1",
"email": "test@email.com",
"info": {
"bio": "Test Bio",
"x": "",
"website": "",
"youtube": "",
"telegram": ""
},
"commission": 70,
"notifications": [
"subscription",
"like",
"subscription_email",
"new_features_email"
],
"payments_enabled": true,
"verified": true,
"ref_id": "u7OFKFKKR4ItSdgfzYP3I",
"updated_at": "2024-10-22T20:30:44.688Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Users
updateUserInfo
Update user profile information.
POST
/
updateUserInfo
updateUserInfo
curl --request POST \
--url https://alphainsider.com/api/updateUserInfo \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"bio": "<string>",
"youtube": "<string>",
"x": "<string>",
"telegram": "<string>",
"website": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bio: '<string>',
youtube: '<string>',
x: '<string>',
telegram: '<string>',
website: '<string>'
})
};
fetch('https://alphainsider.com/api/updateUserInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/updateUserInfo"
payload = {
"bio": "<string>",
"youtube": "<string>",
"x": "<string>",
"telegram": "<string>",
"website": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/updateUserInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bio' => '<string>',
'youtube' => '<string>',
'x' => '<string>',
'telegram' => '<string>',
'website' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://alphainsider.com/api/updateUserInfo"
payload := strings.NewReader("{\n \"bio\": \"<string>\",\n \"youtube\": \"<string>\",\n \"x\": \"<string>\",\n \"telegram\": \"<string>\",\n \"website\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": {
"user_id": "user_1",
"email": "test@email.com",
"info": {
"bio": "Test Bio",
"x": "",
"website": "",
"youtube": "",
"telegram": ""
},
"commission": 70,
"notifications": [
"subscription",
"like",
"subscription_email",
"new_features_email"
],
"payments_enabled": true,
"verified": true,
"ref_id": "u7OFKFKKR4ItSdgfzYP3I",
"updated_at": "2024-10-22T20:30:44.688Z",
"created_at": "2024-08-30T13:40:27.343Z"
}
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Headers
User API token.
Body
application/json
⌘I