Skip to content

Conversation

@comewalk
Copy link
Owner

This PR includes following updates.

  • Change discovery URL
  • Add discovery_service_url option to Google::API::Client::build method

And I will create a new PR for bumping version soon. Then I will upload new version.

Change discovery URL

By this change, this module uses new discovery URL

  • Previous https://www.googleapis.com/discovery/v1/apis/{api}/{apiVersion}/rest
  • Current https://{api}.googleapis.com/$discovery/rest?version={apiVersion}

Some APIs are still using previous URL though, it is converted by detecting services in Google::API::Client::_is_v1_discovery_url.

discovery_service_url option

You can specify discovery URL by using discovery_service_url option like below. (Following code does not work. Because the discovery URL is dummy.)

my $client = Google::API::Client->new;
my $service = $client->build('youtube', 'v3', {discovery_service_url = 'https://www.example.com/rest/'});

Other

  • Add tests
  • Add searchconsole example

Thanks

Thanks to @robhammond and @7mho7. Their PRs, #26 and #27, helped me to create this PR.

@comewalk comewalk merged commit bcbdeac into master Nov 8, 2021
@comewalk comewalk deleted the update-discovery-template branch November 8, 2021 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants