Rest question (Newbie) in Network, Cloud and Web Posted April 2, 2019 Yahoo Weather Api object RESTClient1: TRESTClient Authenticator = OAuth1Authenticator1 Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8,' AcceptCharset = 'utf-8, *;q=0.8' BaseURL = 'https://weather-ydn-yql.media.yahoo.com/forecastrss' Params = <> RaiseExceptionOn500 = False end object RESTRequest1: TRESTRequest Client = RESTClient1 Params = < item Name = 'location' Value = ' Sunnyvale ,ca' end item Kind = pkHTTPHEADER Name = 'X-Yahoo-App-Id' Value = 'yours' end item Name = 'u' Value = 'c' end item Name = 'format' Value = 'json' end> Response = RESTResponse1 SynchronizedEvents = False end object RESTResponse1: TRESTResponse ContentType = 'application/json' end object OAuth1Authenticator1: TOAuth1Authenticator ConsumerKey = 'yours' ConsumerSecret = 'yours' end
Rest question (Newbie)
in Network, Cloud and Web
Posted
Yahoo Weather Api
object RESTClient1: TRESTClient
Authenticator = OAuth1Authenticator1
Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8,'
AcceptCharset = 'utf-8, *;q=0.8'
BaseURL = 'https://weather-ydn-yql.media.yahoo.com/forecastrss'
Params = <>
RaiseExceptionOn500 = False
end
object RESTRequest1: TRESTRequest
Client = RESTClient1
Params = <
item
Name = 'location'
Value = ' Sunnyvale ,ca'
end
item
Kind = pkHTTPHEADER
Name = 'X-Yahoo-App-Id'
Value = 'yours'
end
item
Name = 'u'
Value = 'c'
end
item
Name = 'format'
Value = 'json'
end>
Response = RESTResponse1
SynchronizedEvents = False
end
object RESTResponse1: TRESTResponse
ContentType = 'application/json'
end
object OAuth1Authenticator1: TOAuth1Authenticator
ConsumerKey = 'yours'
ConsumerSecret = 'yours'
end