* Ascend one level deep into the API endpoint
*
* @var string|int $seg The "path" element to ascend into
* Ascend one level deep into the API endpoint
*
* @var string|int $seg The "path" element to ascend into
*/
function __get($seg) : API {
if (substr($seg, -4) === "_url") {
*/
function __get($seg) : API {
if (substr($seg, -4) === "_url") {
return $this->$method->get(...$args)->otherwise(function($error) use($method, $args) {
if ($this->exists($method."_url", $url)) {
return $this->$method->get(...$args)->otherwise(function($error) use($method, $args) {
if ($this->exists($method."_url", $url)) {