Criar um ou mais eventos
curl --request POST \
--url https://api.thatsme.com.br/api/v1.0/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "<string>",
"description": "<string>",
"state": "<string>",
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"timezone": "<string>",
"address": "<string>",
"initial_date": "<string>",
"finish_date": "<string>",
"official_url": "<string>",
"image_url": "<string>",
"image_key": "<string>",
"is_private": true,
"start_time": "<string>",
"end_time": "<string>",
"recurrence_start_date": "<string>",
"connected_event_ids": [
"<string>"
]
}
]
}
'import requests
url = "https://api.thatsme.com.br/api/v1.0/events"
payload = { "events": [
{
"name": "<string>",
"description": "<string>",
"state": "<string>",
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"timezone": "<string>",
"address": "<string>",
"initial_date": "<string>",
"finish_date": "<string>",
"official_url": "<string>",
"image_url": "<string>",
"image_key": "<string>",
"is_private": True,
"start_time": "<string>",
"end_time": "<string>",
"recurrence_start_date": "<string>",
"connected_event_ids": ["<string>"]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
events: [
{
name: '<string>',
description: '<string>',
state: '<string>',
city: '<string>',
country: '<string>',
latitude: 123,
longitude: 123,
timezone: '<string>',
address: '<string>',
initial_date: '<string>',
finish_date: '<string>',
official_url: '<string>',
image_url: '<string>',
image_key: '<string>',
is_private: true,
start_time: '<string>',
end_time: '<string>',
recurrence_start_date: '<string>',
connected_event_ids: ['<string>']
}
]
})
};
fetch('https://api.thatsme.com.br/api/v1.0/events', 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.thatsme.com.br/api/v1.0/events",
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([
'events' => [
[
'name' => '<string>',
'description' => '<string>',
'state' => '<string>',
'city' => '<string>',
'country' => '<string>',
'latitude' => 123,
'longitude' => 123,
'timezone' => '<string>',
'address' => '<string>',
'initial_date' => '<string>',
'finish_date' => '<string>',
'official_url' => '<string>',
'image_url' => '<string>',
'image_key' => '<string>',
'is_private' => true,
'start_time' => '<string>',
'end_time' => '<string>',
'recurrence_start_date' => '<string>',
'connected_event_ids' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.thatsme.com.br/api/v1.0/events"
payload := strings.NewReader("{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.thatsme.com.br/api/v1.0/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thatsme.com.br/api/v1.0/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyEventos
Criar um ou mais eventos
POST
/
v1.0
/
events
Criar um ou mais eventos
curl --request POST \
--url https://api.thatsme.com.br/api/v1.0/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "<string>",
"description": "<string>",
"state": "<string>",
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"timezone": "<string>",
"address": "<string>",
"initial_date": "<string>",
"finish_date": "<string>",
"official_url": "<string>",
"image_url": "<string>",
"image_key": "<string>",
"is_private": true,
"start_time": "<string>",
"end_time": "<string>",
"recurrence_start_date": "<string>",
"connected_event_ids": [
"<string>"
]
}
]
}
'import requests
url = "https://api.thatsme.com.br/api/v1.0/events"
payload = { "events": [
{
"name": "<string>",
"description": "<string>",
"state": "<string>",
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"timezone": "<string>",
"address": "<string>",
"initial_date": "<string>",
"finish_date": "<string>",
"official_url": "<string>",
"image_url": "<string>",
"image_key": "<string>",
"is_private": True,
"start_time": "<string>",
"end_time": "<string>",
"recurrence_start_date": "<string>",
"connected_event_ids": ["<string>"]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
events: [
{
name: '<string>',
description: '<string>',
state: '<string>',
city: '<string>',
country: '<string>',
latitude: 123,
longitude: 123,
timezone: '<string>',
address: '<string>',
initial_date: '<string>',
finish_date: '<string>',
official_url: '<string>',
image_url: '<string>',
image_key: '<string>',
is_private: true,
start_time: '<string>',
end_time: '<string>',
recurrence_start_date: '<string>',
connected_event_ids: ['<string>']
}
]
})
};
fetch('https://api.thatsme.com.br/api/v1.0/events', 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.thatsme.com.br/api/v1.0/events",
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([
'events' => [
[
'name' => '<string>',
'description' => '<string>',
'state' => '<string>',
'city' => '<string>',
'country' => '<string>',
'latitude' => 123,
'longitude' => 123,
'timezone' => '<string>',
'address' => '<string>',
'initial_date' => '<string>',
'finish_date' => '<string>',
'official_url' => '<string>',
'image_url' => '<string>',
'image_key' => '<string>',
'is_private' => true,
'start_time' => '<string>',
'end_time' => '<string>',
'recurrence_start_date' => '<string>',
'connected_event_ids' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.thatsme.com.br/api/v1.0/events"
payload := strings.NewReader("{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.thatsme.com.br/api/v1.0/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thatsme.com.br/api/v1.0/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"state\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"timezone\": \"<string>\",\n \"address\": \"<string>\",\n \"initial_date\": \"<string>\",\n \"finish_date\": \"<string>\",\n \"official_url\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_key\": \"<string>\",\n \"is_private\": true,\n \"start_time\": \"<string>\",\n \"end_time\": \"<string>\",\n \"recurrence_start_date\": \"<string>\",\n \"connected_event_ids\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyAutorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
application/json
Objeto com os atributos de um evento ou array de eventos
Um evento ou array de eventos para criação
Minimum array length:
1Show child attributes
Show child attributes
Resposta
Evento(s) criado(s) com sucesso
⌘I