Skip to content

Instantly share code, notes, and snippets.

{
"foo": "bar"
}
{
"foo": "bar"
}
<?php
function query($method, $resource, $data = array())
{
$api_server = 'https://api.sello.io/v3';
$api_token = 'yourtoken';
$api_key = 'yourkey';
$url = $api_server.'/'.$resource.'?';
if ($method == 'GET' && count($data) > 0) {
foreach ($data as $key => $value) {
{
"color": "blue"
}