1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to add API to PHP?

Discussion in 'Yahoo API' started by JEET, Jul 13, 2006.

  1. #1
    Hi,
    I want to use Yahoo API with PHP to count the number of pages indexed of a given site. But I really don't know anything about using API's...
    If anyone knows how to count the number of pages indexed using php, please show me how to do this or if you know of a tutorial, then please give me a link.
    A code example would be extremely useful.

    I searched google and yahoo for yahoo api tutorials but found nothing very useful.
    Thank you for helping me! :)
     
    JEET, Jul 13, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Read the API docs, everything you need to know are in there. But if you don't know PHP well, it'll be a nightmare.
     
    T0PS3O, Jul 13, 2006 IP
  3. JEET

    JEET Well-Known Member

    Messages:
    2,089
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Hi,
    I downloaded the zip from developer pages and uploaded example 4 in php to my host. Then when I called YahooSearchExample.php, it asks for a zip code. What to enter here?

    Additionally it also shows an error, "call to undefined function".

    I know PHP fairly well. The code in those files is understandable but I am not sure about the 2 things I mentioned above. (zip code and error message.)
    How can I solve this?
    Thank you! :)
     
    JEET, Jul 13, 2006 IP
  4. JEET

    JEET Well-Known Member

    Messages:
    2,089
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    160
    #4
    OK, figured all out... :)
    Just 1 more question, How many queries can be sent using this "yahoodemo" API in 1 day?
    Thank you
     
    JEET, Jul 13, 2006 IP
  5. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,469
    Likes Received:
    335
    Best Answers:
    0
    Trophy Points:
    240
    #5
    I think its 1000 Queries per day.
     
    Nick_Mayhem, Jul 15, 2006 IP