for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrennerSousa\CafeApi;
/**
* Class Me
* @package BrennerSousa\CafeApi
*/
class Me extends CafeApi
{
* Me constructor
* @param string $apiUrl
* @param string $email
* @param string $password
public function __construct(string $apiUrl, string $email, string $password)
parent::__construct($apiUrl, $email, $password);
}
* @return Me
public function me(): Me
$this->request(
"GET",
"/me"
);
return $this;
* @param array $fields
public function update(array $fields): Me
"PUT",
"/me",
$fields
* @param array $files
public function photo(array $files): Me
"POST",
"/me/photo",
[
"files" => true,
"photo" => curl_file_create($files["tmp_name"], $files["type"])
]