Fragen\GitHub_Updater\Bitbucket_API::get_repo_meta PHP Method

get_repo_meta() public method

Read the repository meta from API
public get_repo_meta ( ) : boolean
return boolean
    public function get_repo_meta()
    {
        $response = isset($this->response['meta']) ? $this->response['meta'] : false;
        if (!$response) {
            $response = $this->api('/2.0/repositories/:owner/:repo');
            if ($response) {
                $response = $this->parse_meta_response($response);
                $this->set_transient('meta', $response);
            }
        }
        if ($this->validate_response($response)) {
            return false;
        }
        $this->type->repo_meta = $response;
        $this->add_meta_repo_object();
        return true;
    }