oauth_storage->retrieveToken( TokenType::WORDPRESS )->getAccessToken(); $headers = $this->get_headers(); $api = new API( $token, $headers ); $api->setBaseUrl( $this->config->get_api_url() ); return $api; } }