SimpleXMLelements fail
Op mijn host is SimplXML + Curl enables.
toch krijg ik met
Een melding dat Basic Authentication not is supported :S
wat moet ik doen
http://i53.tinypic.com/33erk1v.jpg
Toevoeging op 03/09/2010 07:28:55:
Twitter heeft Curl updates uit veiligheid uitgeschakeld.
Xauth werkt alleen nog maar, dus we gaan een andere manier zoeken om de updates via dat systeem optehalen :D
toch krijg ik met
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
<?php $user = "OverdatumNL";
$pass = "xxx";
error_reporting(E_ALL);
$timeline = curl_init("http://twitter.com/statuses/user_timeline.xml");
curl_setopt($timeline, CURLOPT_USERPWD, $user.":".$pass);
curl_setopt($timeline, CURLOPT_RETURNTRANSFER, 1);
$result2 = curl_exec($timeline);
$result2 = new SimpleXMLelement($result2);
var_dump($result2); ?>
$pass = "xxx";
error_reporting(E_ALL);
$timeline = curl_init("http://twitter.com/statuses/user_timeline.xml");
curl_setopt($timeline, CURLOPT_USERPWD, $user.":".$pass);
curl_setopt($timeline, CURLOPT_RETURNTRANSFER, 1);
$result2 = curl_exec($timeline);
$result2 = new SimpleXMLelement($result2);
var_dump($result2); ?>
Een melding dat Basic Authentication not is supported :S
wat moet ik doen
http://i53.tinypic.com/33erk1v.jpg
Toevoeging op 03/09/2010 07:28:55:
Twitter heeft Curl updates uit veiligheid uitgeschakeld.
Xauth werkt alleen nog maar, dus we gaan een andere manier zoeken om de updates via dat systeem optehalen :D
Gewijzigd op 03/09/2010 00:06:25 door Www JdeRuijterNL
Gesponsorde koppelingen:
Laat maar, verkeerd gekeken. Heeft twitter geen API voor dit soort dingen?
Gewijzigd op 03/09/2010 08:29:26 door SilverWolf NL
SilverWolf NL op 03/09/2010 08:28:02:
Laat maar, verkeerd gekeken. Heeft twitter geen API voor dit soort dingen?
Twitter heeft een API voor dit soort dingen.
Ik ben me nu daarover aan het inlezen.
Update 1: New authorization rules for applications
Starting August 31, all applications will be required to use “OAuth” to access your Twitter account.
What's OAuth?
OAuth is a technology that enables applications to access Twitter on your behalf with your approval without asking you directly for your password....
Aldus Twitter in hun e-mail aan mij.
Starting August 31, all applications will be required to use “OAuth” to access your Twitter account.
What's OAuth?
OAuth is a technology that enables applications to access Twitter on your behalf with your approval without asking you directly for your password....
Aldus Twitter in hun e-mail aan mij.
Je probeert in te loggen op een HTTP beveligde omgeving. Dit is iets heel anders dan wat twitter gebruikt.
http://php.net/manual/en/features.http-auth.php
Mocht je ooit nog eens me cURL in willen loggen op een plek zonder API, log dan in in firefox en kijk in firebug wat voor POST request je moet sturen. Maak dat dan na in cURL en je bent ingelogd (wel een cookiejar instellen).
http://php.net/manual/en/features.http-auth.php
Mocht je ooit nog eens me cURL in willen loggen op een plek zonder API, log dan in in firefox en kijk in firebug wat voor POST request je moet sturen. Maak dat dan na in cURL en je bent ingelogd (wel een cookiejar instellen).


