-
Notifications
You must be signed in to change notification settings - Fork 82
Add free SSL status and retry #80
base: master
Are you sure you want to change the base?
Conversation
Add .gitattributes
Apply fixes from StyleCI
to prevent needless code / checks for `NULL` values
Use function defaults
…tps-setting Add always_use_https() and change_always_use_https()
Set all headers at once
Add automatic_https_rewrites() and change_automatic_https_rewrites()
Removed version number based on Composer best practices. Thanks for pointing out @holtkamp https://getcomposer.org/doc/04-schema.md#version
v1.11.0 updated the default $data and $method parameters for the request method. The method parameters that call this method need to be updated to avoid exceptions being thrown.
Update default data parameters for request methods
Cloudflare's free SSL takes time to issue. These two new functions enable you to detect when its ready and also to trigger Cloudflare to retry validation (like after name servers were updated).
Add free SSL status and retry
@@ -96,4 +96,30 @@ public function delete_ssl($zone_identifier, $identifier) | |||
{ | |||
return $this->delete('zones/'.$zone_identifier.'/custom_certificates/'.$identifier); | |||
} | |||
|
|||
/** | |||
* Get SSL Verification Info for a Zone (permission needed: #ssl:read) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
|
||
/** | ||
* Get SSL Verification Info for a Zone (permission needed: #ssl:read) | ||
* https://api.cloudflare.com/#ssl-verification-properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
/** | ||
* Get SSL Verification Info for a Zone (permission needed: #ssl:read) | ||
* https://api.cloudflare.com/#ssl-verification-properties | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* Get SSL Verification Info for a Zone (permission needed: #ssl:read) | ||
* https://api.cloudflare.com/#ssl-verification-properties | ||
* | ||
* @param string $zone_identifier API item identifier tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* https://api.cloudflare.com/#ssl-verification-properties | ||
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_status($zone_identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Spaces must be used to indent lines; tabs are not allowed
- Method name
SSL::free_ssl_status
is not in camel caps format
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_status($zone_identifier) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
*/ | ||
public function free_ssl_status($zone_identifier) | ||
{ | ||
return $this->get('zones/'.$zone_identifier.'/ssl/verification'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
public function free_ssl_status($zone_identifier) | ||
{ | ||
return $this->get('zones/'.$zone_identifier.'/ssl/verification'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
return $this->get('zones/'.$zone_identifier.'/ssl/verification'); | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
} | ||
|
||
/** | ||
* Immediately retry SSL verification (permission needed: #ssl:edit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
|
||
/** | ||
* Immediately retry SSL verification (permission needed: #ssl:edit) | ||
* https://api.cloudflare.com/#ssl-verification-properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
/** | ||
* Immediately retry SSL verification (permission needed: #ssl:edit) | ||
* https://api.cloudflare.com/#ssl-verification-properties | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* Immediately retry SSL verification (permission needed: #ssl:edit) | ||
* https://api.cloudflare.com/#ssl-verification-properties | ||
* | ||
* @param string $zone_identifier API item identifier tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* https://api.cloudflare.com/#ssl-verification-properties | ||
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_retry($zone_identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Spaces must be used to indent lines; tabs are not allowed
- Method name
SSL::free_ssl_retry
is not in camel caps format
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_retry($zone_identifier) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
*/ | ||
public function free_ssl_retry($zone_identifier) | ||
{ | ||
$data = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
public function free_ssl_retry($zone_identifier) | ||
{ | ||
$data = [ | ||
'retry' => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
{ | ||
$data = [ | ||
'retry' => true | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
'retry' => true | ||
]; | ||
|
||
return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
]; | ||
|
||
return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_status($zone_identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
Method name "SSL::free_ssl_status" is not in camel caps format
* | ||
* @param string $zone_identifier API item identifier tag | ||
*/ | ||
public function free_ssl_retry($zone_identifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces must be used to indent lines; tabs are not allowed
Method name "SSL::free_ssl_retry" is not in camel caps format
#79 Added reference to opened issue |
…de and change_bot_fight_mode to Settings
…le slashes breaks the API calls
Cloudflare's free SSL takes time to issue. These two new functions enable you to detect when its ready and also to trigger Cloudflare to retry validation (like after name servers were updated).