POST https://:account.api-us1.com/api/3/users
- cURL
curl --request POST \
--url https:///:account.api-us1.com/api/3/users
- Node
var request = require("request");
var options = { method: 'POST',
url: 'https:///:account.api-us1.com/api/3/users' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
- Ruby
require 'uri'
require 'net/http'
url = URI("https:///:account.api-us1.com/api/3/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body
- JavaScript
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("POST", "https:///:account.api-us1.com/api/3/users");
xhr.send(data);
- Python
import requests
url = "https:///:account.api-us1.com/api/3/users"
response = requests.request("POST", url)
print(response.text)
201 Created
BODY PARAMS
user
object
user.username
string Username
user.email
string Email address
user.firstName
string First name
user.lastName
string Last name
user.group
int32 Group ID
user.password
string Plain text password
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.