✔️ Field user
was added to object type Participant
✔️ Field stream
was added to object type Set
from Weather import Weather | |
# Initialize the client object with your Mashape public and private keys. | |
obj = Weather("YOUR_PUBLIC_KEY", "YOUR_PRIVATE_KEY") | |
def parse_result(response): | |
print response.code # http status code | |
print response.headers # string response headers | |
print response.raw_body # raw string response body | |
print response.body # parsed response body |
print response.body[0]["conditions"] |
from Weather import Weather | |
# Initialize the client object with your Mashape public and private keys. | |
obj = Weather("YOUR_PUBLIC_KEY", "YOUR_PRIVATE_KEY") | |
# Invoke the method and get back the MashapeResponse object | |
response = obj.getForecasts("San Francisco") | |
# The MashapeResponse has the following properties that you can use | |
print response.code # http status code |
<?php | |
var_dump(curl_version()); | |
?> |
print $response->body[0]->condition; |
<?php | |
require_once("Weather.php"); | |
// Initialize the client object with your Mashape public and private keys. | |
$obj = new Weather("YOUR_PUBLIC_KEY", "YOUR_PRIVATE_KEY"); | |
// Invoke the method and get back the MashapeResponse object | |
$response = $obj->getForecasts("San Francisco"); | |
// The MashapeResponse has the following properties that you can use |
<?php | |
require_once("Bitly.php"); | |
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "MY_API_KEY", "MY_LOGIN"); | |
$response = $bitly->getShortenedUrl("http://mashape.com/docs/consume/php"); | |
?> |
<?php | |
require_once("Bitly.php"); | |
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "MY_API_KEY", "MY_LOGIN"); | |
?> |
<?php | |
require_once("Bitly.php"); | |
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "MY_API_KEY", "MY_LOGIN"); | |
$response = $bitly->getShortenedUrl("http://mashape.com/docs/consume/php"); | |
echo $response->statusCode; // should be "200" | |
echo $response->headers; // A string showing the headers of the response | |
if ($response->statusCode == "200") { |