How receive TV list with GET/POST methods?

Discussion about Schedules Direct grabber code and data formats.
Post Reply
ramis55
Posts: 1
Joined: Fri Sep 19, 2008 5:21 am

How receive TV list with GET/POST methods?

Post by ramis55 »

Hello,

It is my first post to this forum. I can not found how I can get TV list using only GET/POST methods. How I can receive TV listings only using GET and POST HTTP methods? I do not want use any applications like xmltv.exe and others.

Best regards,
Ramunas

Strife
Posts: 1
Joined: Sat Oct 11, 2008 8:56 pm

Re: How receive TV list with GET/POST methods?

Post by Strife »

I'm trying to get this working as well. I know you need to post a soap envolope, such as the sample one in the sticky thread, but I don't know how to login with your username/password using this method. I'm using Java btw. The URL you need to post to is:
http://docs.tms.tribune.com/tech/tmsdat ... ivery.wsdl

Here is the SOAP envelope from the samples:

Code: Select all

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<m:download xmlns:m="urn:TMSWebServices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<startTime xsi:type="xsd:dateTime">2005-02-22T19:00:00Z</startTime>
			<endTime xsi:type="xsd:dateTime">2005-02-22T21:00:00Z</endTime>
		</m:download>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

slyttle
Posts: 3
Joined: Sun Sep 25, 2011 9:03 am

Re: How receive TV list with GET/POST methods?

Post by slyttle »

Just wondering if you ever resolved this .... I am just embarking on my old java implementation and anticipate the same issue.

I am hoping it is as simple as including the credintials in the header???

thx

-Sheldon

Valdhor
Posts: 5
Joined: Tue Jul 27, 2010 6:02 am

Re: How receive TV list with GET/POST methods?

Post by Valdhor »

You need to send the username/password in a HTTP Basic authentication header.

Something like (In PHP)...

"Authorization: Basic ".base64_encode($username.':'.$password)."\r\n"

In PHP you can also use the curl option CURLOPT_USERPWD

Post Reply