This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Use this function to contact CW API | |
/** | |
* | |
* @param string $method GET|POST|PUT|DELETE | |
* @param string $url relative URL for the call | |
* @param string $accessToken Access token generated using OAuth Call | |
* @param type $post Optional post data for the call | |
* @return object Output from CW API | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urlparse | |
import requests | |
import json | |
import random | |
import time | |
#Fetch Key from platform.cloudways.com/api | |
API_SECRET_KEY ="YOUR SECRET API KEY" | |
EMAIL ="YOUR EMAIL Address" |