public function create($data)
    {
        $response = $this->api->post($this->url(), $data);
        $className = $this->objectClass;

        return new $className($this->api, $this, $response->data);
    }
public function create($data)
    {
        $response = $this->api->post($this->url(), $data);
        $className = $this->objectClass;

        return new $className($this->api, $this, $response->data);
    }
public function create ( $ data ) { $ response = $ this -> api -> post ( $ this -> url ( ) , $ data ) ; $ className = $ this -> objectClass ; return new $ className ( $ this -> api , $ this , $ response -> data ) ; }
Makes a POST request to the API and creates a new object.

@param $data
@return \Billogram\Api\Objects\SimpleObject
Makes a POST request to the API and creates a new object .