Abstract_API_Key_Api::load_api_key( TECEvent_AutomatorZapierarray $api_key, string $consumer_secret )
Load a specific api_key into the API.
Contents
Parameters
- $api_key
-
(<span class="TECEvent_AutomatorZapierarrayTECEvent_AutomatorZapierarray<string|">TECEvent_AutomatorZapierstring>) (Required) An api_key with the fields to access the API.
- $consumer_secret
-
(string) (Required) An optional consumer secret used to verify an API Key pair.
Return
(bool|WP_Error) Return true if loaded or WP_Error otherwise.
Source
File: src/Common/Event_Automator/Zapier/Abstract_API_Key_Api.php
public function load_api_key( array $api_key, $consumer_secret ) {
$valid = $this->is_valid_api_key( $api_key, $consumer_secret );
if ( is_wp_error( $valid ) ) {
return $valid;
}
$this->init_api_key( $api_key );
return true;
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |