This project is not covered by Drupal’s security advisory policy.

Precondition

From Bing documentation:

Bing recommends using the URL submission tool to get web content indexed (as soon as it is published) or updated online. As a webmaster, you can submit URLs to Bing programmatically through the Submit URLs API or the URL submission feature in Bing Webmasters Tools. It allows you to submit up to 10,000 URLs per day for most sites, for (potential) immediate crawls and indexation – depending on a variety of signals available to Bing. We reset the quota every day at midnight GMT. It is also recommended to refresh Sitemaps at least once a day to help Bing discover all relevant (fresh and non-fresh) URLs of your website.

What does the module do?

The module provides service that performs same work as URL Submission Tool on the Bing Dashboard.

How to use?

Installation:

Install the module via Composer.

Get API credentials:

Follow instruction to configure Bing and get API key: https://learn.microsoft.com/en-us/bingwebmaster/getting-access#using-api...

Configuration:

Go to /admin/config/services/bing-index-api.
Provide domain url (ex. 'https://www.example.com') and API keys created on previous step to connect with Microsoft Bing Indexing API.

Manual updating urls: /admin/config/services/bing-index-api/bulk-update

Example of using:

// Put next line to your hook/event to trigger url update of your page.
\Drupal::service('bing_index_api.client')->updateUrl($entity->toUrl()->toString());

// Or relative path of some page.
\Drupal::service('bing_index_api.client')->updateUrl('/foo/boo');

Note: use path aliases, /node/1 and /node-1-path-alias are different urls for Bing.

Supporting organizations: 

Project information

Releases