Is there an example that works with streaming? I wasn't able to make the following work: import module namespace http = "http://www.zorba-xquery.com/modules/http-client";
declare namespace h = "http://expath.org/ns/http-client";
let $item := http:send-request(<h:request href="https://stream.twitter.com/1/statuses/sample.json?delimited=length" method="GET" username="wcandillon" password="wnvbb86g" override-media-type="text/plain" /> , "https://stream.twitter.com/1/statuses/sample.json?delimited=length", () )[2] for $tweet in tokenize($item,"a") return $tweet
Where: import module namespace http = "http://www.zorba-xquery.com/modules/http-client";
let $item := http:send-request(<h:request href="https://stream.twitter.com/1/statuses/sample.json?delimited=length" method="GET" username="wcandillon" password="wnvbb86g" override-media-type="text/plain" /> , "https://stream.twitter.com/1/statuses/sample.json?delimited=length", () )[2] return $item
streams fine. What am I missing?
« Back to merge proposal
Is there an example that works with streaming? www.zorba- xquery. com/modules/ http-client";
I wasn't able to make the following work:
import module namespace http = "http://
declare namespace h = "http:// expath. org/ns/ http-client";
let $item := http:send- request(<h:request href="https:/ /stream. twitter. com/1/statuses/ sample. json?delimited= length"
method= "GET"
username= "wcandillon"
password= "wnvbb86g"
override- media-type= "text/plain"
/>
,
"https:/ /stream. twitter. com/1/statuses/ sample. json?delimited= length",
()
)[2]
for $tweet in tokenize($item,"a")
return $tweet
Where: www.zorba- xquery. com/modules/ http-client";
import module namespace http = "http://
declare namespace h = "http:// expath. org/ns/ http-client";
let $item := http:send- request(<h:request href="https:/ /stream. twitter. com/1/statuses/ sample. json?delimited= length"
method= "GET"
username= "wcandillon"
password= "wnvbb86g"
override- media-type= "text/plain"
/>
,
"https:/ /stream. twitter. com/1/statuses/ sample. json?delimited= length",
()
)[2]
return $item
streams fine.
What am I missing?