jasondavis / mysqlicious

Automatically exported from code.google.com/p/mysqlicious
1 stars 1 forks source link

Delicious API Error #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded MySQLicious-1.2.zip
2. Unzip the MySQLicious-1.2.zip file to apache\htdocs\mysqlicious
3. Pasted:
<?php
require "MySQLicious.php";
$delicious = new MySQLicious("localhost", "mysqlicious", "root", "password");
$delicious->mirror("deliciousUser", "deliciousPass", "bookmarks", "web2.0");
?>
as instructed in the project homepage into test.php in the same folder.
Changed deliciousUser, deliciousPass to my real delicious username and password
4. Run: http://localhost/mysqlicious/test.php

What is the expected output? 
1. Some data printed in the page.
2. Some data in table "bookmarks" on database "mysqlicious".

What do you see instead?
Just "Delicious API Error:"

What version of the product are you using?
MySQLicious: 1.2
PHP: 5.2.9-1
Apache: 2.2.11
MySQL: 5.0.51b

On what operating system?
Windows XP

Original issue reported on code.google.com by ikhnat...@gmail.com on 13 Jul 2009 at 6:34

GoogleCodeExporter commented 9 years ago
I resolved this issue by adding the following line:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

to MySQLicious.php at line# 349 after:
curl_setopt($ch, CURLOPT_USERAGENT, "MySQLicious"); // set our useragent because
Delicious likes it that way

and it works fine now for me.

Attached the new MySQLicious.php

Original comment by ikhnat...@gmail.com on 13 Jul 2009 at 7:09

Attachments:

GoogleCodeExporter commented 9 years ago
I had the same issue, the above fix worked fine. I also had a problem with the 
script
trying to insert duplicate entries into the mysqlicious table, after dropping 
the
tables all works fine. Thanks for the great script.

Original comment by dangun...@gmail.com on 15 Aug 2009 at 1:10

GoogleCodeExporter commented 9 years ago
The solution said by ikhnaton2 works great ! Thanks for the sharing !

And also thanks for this script !

Original comment by maximelo...@gmail.com on 17 Oct 2009 at 7:38