src/Mamoto/Api/AbstractApi.php
public function get()
    {
        if ((int) $this->id <= 0) {
            throw new NullPointerException("Id is not set.");
        }
        
        // build url
        $url = $this->base_url . $this->url . "/" . $this->id;
        // get data from server
        $data = $this->getDataFromUrl($url);
        
        // parse result set and get data as array
        $result = $this->parseJsonData($data);
        
        return $result;
    }
public function get()
    {
        if ((int) $this->id <= 0) {
            throw new NullPointerException("Id is not set.");
        }
        
        // build url
        $url = $this->base_url . $this->url . "/" . $this->id;
        // get data from server
        $data = $this->getDataFromUrl($url);
        
        // parse result set and get data as array
        $result = $this->parseJsonData($data);
        
        return $result;
    }
get data from defined Id

@throws NullPointerException
@return array|mixed array data