Vincular Roblox
curl --request POST \
--url https://api.erlcrussia.com/v3/auth/user/roblox \
--header 'Content-Type: application/json' \
--cookie erlc_auth= \
--data '
{
"code": "roblox-oauth-code"
}
'import requests
url = "https://api.erlcrussia.com/v3/auth/user/roblox"
payload = { "code": "roblox-oauth-code" }
headers = {
"cookie": "erlc_auth=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'erlc_auth=', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'roblox-oauth-code'})
};
fetch('https://api.erlcrussia.com/v3/auth/user/roblox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/auth/user/roblox",
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([
'code' => 'roblox-oauth-code'
]),
CURLOPT_COOKIE => "erlc_auth=",
CURLOPT_HTTPHEADER => [
"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://api.erlcrussia.com/v3/auth/user/roblox"
payload := strings.NewReader("{\n \"code\": \"roblox-oauth-code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "erlc_auth=")
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))
}HttpResponse<String> response = Unirest.post("https://api.erlcrussia.com/v3/auth/user/roblox")
.header("cookie", "erlc_auth=")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"roblox-oauth-code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/auth/user/roblox")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'erlc_auth='
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"roblox-oauth-code\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"user": {
"id": "123456789012345678",
"name": "player",
"image": "https://cdn.discordapp.com/avatars/123456789012345678/a_1b2c3d4e5f.gif?size=256",
"discordId": "123456789012345678",
"discordAvatar": "a_1b2c3d4e5f",
"discordAvatarDecoration": null,
"robloxId": "156",
"robloxName": "Builderman",
"robloxDisplayName": "Builder",
"robloxAvatar": "https://tr.rbxcdn.com/avatar.png",
"username": "player",
"provider": "discord",
"eCoins": 250
}
}Roblox y perfil
Vincular Roblox
Vincula una cuenta de Roblox al usuario actual.
POST
/
auth
/
user
/
roblox
Vincular Roblox
curl --request POST \
--url https://api.erlcrussia.com/v3/auth/user/roblox \
--header 'Content-Type: application/json' \
--cookie erlc_auth= \
--data '
{
"code": "roblox-oauth-code"
}
'import requests
url = "https://api.erlcrussia.com/v3/auth/user/roblox"
payload = { "code": "roblox-oauth-code" }
headers = {
"cookie": "erlc_auth=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'erlc_auth=', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'roblox-oauth-code'})
};
fetch('https://api.erlcrussia.com/v3/auth/user/roblox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/auth/user/roblox",
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([
'code' => 'roblox-oauth-code'
]),
CURLOPT_COOKIE => "erlc_auth=",
CURLOPT_HTTPHEADER => [
"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://api.erlcrussia.com/v3/auth/user/roblox"
payload := strings.NewReader("{\n \"code\": \"roblox-oauth-code\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "erlc_auth=")
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))
}HttpResponse<String> response = Unirest.post("https://api.erlcrussia.com/v3/auth/user/roblox")
.header("cookie", "erlc_auth=")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"roblox-oauth-code\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/auth/user/roblox")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'erlc_auth='
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"roblox-oauth-code\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"user": {
"id": "123456789012345678",
"name": "player",
"image": "https://cdn.discordapp.com/avatars/123456789012345678/a_1b2c3d4e5f.gif?size=256",
"discordId": "123456789012345678",
"discordAvatar": "a_1b2c3d4e5f",
"discordAvatarDecoration": null,
"robloxId": "156",
"robloxName": "Builderman",
"robloxDisplayName": "Builder",
"robloxAvatar": "https://tr.rbxcdn.com/avatar.png",
"username": "player",
"provider": "discord",
"eCoins": 250
}
}¿Esta página le ayudó?