File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jetformbuilder/modules/active-campaign/api/base-action.php
Back
<?php namespace JFB_Modules\Active_Campaign\Api; use JFB_Modules\Gateways\Base_Gateway_Action; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } abstract class Base_Action extends Base_Gateway_Action { protected $token; public function base_url(): string { return '{base}/api/3/'; } public function set_base( string $url ): self { return $this->set_path( array( 'base' => $url, ) ); } public function get_headers(): array { $headers = parent::get_headers(); $headers['Api-Token'] = $this->token; return $headers; } public function set_token( string $token ): self { $this->token = $token; return $this; } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.37 |
proxy
|
phpinfo
|
Settings