- public static function __callStatic($name, $arguments) {
- // Should we implement it ?
- echo "Calling static method '$name' " . implode(', ', $arguments) . "\n";
- }
+ private function remoteCall($entity, $action, $params = []) {
+ $query = $this->uri . "?entity=$entity&action=$action";
+ $fields = http_build_query([
+ 'key' => $this->key,
+ 'api_key' => $this->api_key,
+ 'json' => json_encode($params),
+ ]);