This file contains hidden or 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
<rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="2.0"> | |
<channel> | |
<yweather:units distance="km" pressure="mbar" speed="km/h" temperature="C" /> | |
<title>Yahoo! Weather - Sunnyvale, CA, US</title> | |
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-2502265/</link> | |
<description>Yahoo! Weather for Sunnyvale, CA, US</description> | |
<language>en-us</language> | |
<lastBuildDate>Wed, 09 Jan 2019 12:32 PM PST</lastBuildDate> | |
<ttl>60</ttl> | |
<yweather:location city="Sunnyvale" country="United States" region=" CA" /> |
This file contains hidden or 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 | |
// Copyright 2019 Oath Inc. Licensed under the terms of the zLib license see https://opensource.org/licenses/Zlib for terms. | |
function buildBaseString($baseURI, $method, $params) { | |
$r = array(); | |
ksort($params); | |
foreach($params as $key => $value) { | |
$r[] = "$key=" . rawurlencode($value); | |
} | |
return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $r)); |
This file contains hidden or 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
// Copyright 2019 Oath Inc. Licensed under the terms of the zLib license see https://opensource.org/licenses/Zlib for terms. | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.Base64; | |
import java.util.Base64.Encoder; | |
import java.util.Random; |
NewerOlder