src/ORCIDService.php
protected function getProfile( $id )
    {
        $token = $this->getOAuthToken();
        if (!$token) return;

        $response = $this->httpQuery(
            'GET',
            "https://pub.orcid.org/v1.2/$id/orcid-bio/",
            [
                'Authorization' => "Bearer $token",
                'Accept' => 'application/json',
            ]
        );

        if ($response) {
            return $response->{'orcid-profile'};
        }
    }
protected function getProfile( $id )
    {
        $token = $this->getOAuthToken();
        if (!$token) return;

        $response = $this->httpQuery(
            'GET',
            "https://pub.orcid.org/v1.2/$id/orcid-bio/",
            [
                'Authorization' => "Bearer $token",
                'Accept' => 'application/json',
            ]
        );

        if ($response) {
            return $response->{'orcid-profile'};
        }
    }
protected function getProfile ( $ id ) { $ token = $ this -> getOAuthToken ( ) ; if ( ! $ token ) return ; $ response = $ this -> httpQuery ( 'GET' , "https://pub.orcid.org/v1.2/$id/orcid-bio/" , [ 'Authorization' => "Bearer $token" , 'Accept' => 'application/json' , ] ) ; if ( $ response ) { return $ response -> { 'orcid-profile' } ; } }
get an indentified profile by ORCID ID
get an indentified profile by ORCID ID