Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @since 3.17.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs
* @link https://suggestions-api.parsely.com/docs
*
* @phpstan-import-type Endpoint_Suggest_Brief_Options from Endpoints\Endpoint_Suggest_Brief
* @phpstan-import-type Endpoint_Suggest_Headline_Options from Endpoints\Endpoint_Suggest_Headline
Expand All @@ -36,7 +36,7 @@ class Suggestions_API_Service extends Base_API_Service {
* @return string
*/
public static function get_base_url(): string {
return 'https://content-suggestions-api.parsely.net/prod';
return 'https://suggestions-api.parsely.com';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @since 3.17.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs#/default/suggest_brief_suggest_brief_post
* @link https://suggestions-api.parsely.com/docs#/default/suggest_brief_suggest_brief_post
*
* @phpstan-type Endpoint_Suggest_Brief_Options = array{
* persona?: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @since 3.17.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs#/default/suggest_headline_suggest_headline_post
* @link https://suggestions-api.parsely.com/docs#/default/suggest_headline_suggest_headline_post
*
* @phpstan-type Traffic_Source = array{
* source: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @since 3.19.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs#/prototype/suggest_inbound_link_positions_suggest_inbound_link_positions_post
* @link https://suggestions-api.parsely.com/docs#/prototype/suggest_inbound_link_positions_suggest_inbound_link_positions_post
*
* @phpstan-type LinkPositionResponse = array{
* anchor_texts: array<array{text: string, offset: int}>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @since 3.19.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs#/default/suggest_inbound_links_suggest_inbound_links_post
* @link https://suggestions-api.parsely.com/docs#/default/suggest_inbound_links_suggest_inbound_links_post
*
* @phpstan-type Endpoint_Suggest_Inbound_Links_Options = array{
* max_items?: int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @since 3.17.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs#/default/suggest_linked_reference_suggest_linked_reference_post
* @link https://suggestions-api.parsely.com/docs#/default/suggest_linked_reference_suggest_linked_reference_post
*
* @phpstan-type Traffic_Source = array{
* source: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @since 3.17.0
*
* @link https://content-suggestions-api.parsely.net/prod/docs
* @link https://suggestions-api.parsely.com/docs
*
* @phpstan-import-type WP_HTTP_Response from Base_Service_Endpoint
* @phpstan-import-type WP_HTTP_Request_Args from Base_Service_Endpoint
Expand Down Expand Up @@ -46,7 +46,10 @@ abstract class Suggestions_API_Base_Endpoint extends Base_Service_Endpoint {
protected function get_request_options( string $method ): array {
$options = array(
'method' => $method,
'headers' => array( 'Content-Type' => 'application/json; charset=utf-8' ),
'headers' => array(
'Content-Type' => 'application/json; charset=utf-8',
'X-INTERNAL-SERVICE' => 'content-helper',
),
'data_format' => 'body',
'timeout' => 90, //phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout
'body' => '{}',
Expand Down
Loading