Skip to content

Commit

Permalink
Fixed: API client host is set to host_domain_url.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed May 17, 2024
1 parent 571c8dc commit 8ca30be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Client {
*/
public function __construct( $token = '' ) {
$config = Configuration::getDefaultConfiguration()->setUsername( 'WordPress' )->setPassword(
$token ?: Helpers::get_settings()[ 'api_token' ]
);
$token ?: Helpers::get_settings()[ 'api_token' ]
)->setHost( Helpers::get_hosted_domain_url() );
$this->api_instance = new DefaultApi( new GuzzleClient(), $config );
}

Expand Down

0 comments on commit 8ca30be

Please sign in to comment.