public function getLabel(int $labelId)
    {
        if ( ! $this->validateId($labelId)) {
            return false;
        }

        $result = $this->get('labels/' . $labelId);

        if (200 === $result->getStatusCode()) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getLabel(int $labelId)
    {
        if ( ! $this->validateId($labelId)) {
            return false;
        }

        $result = $this->get('labels/' . $labelId);

        if (200 === $result->getStatusCode()) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getLabel ( int $ labelId ) { if ( ! $ this -> validateId ( $ labelId ) ) { return false ; } $ result = $ this -> get ( 'labels/' . $ labelId ) ; if ( 200 === $ result -> getStatusCode ( ) ) { return json_decode ( $ result -> getBody ( ) -> getContents ( ) ) ; } return false ; }
Get a label.

@param int $labelId ID of the label.

@return object|bool Object with values of the label, or false on failure.
Get a label .