Amazon api - call to undefined function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • obi wan kenobi

    #1

    Amazon api - call to undefined function

    i've used the Amazon PHP api for several months now to pull amazon data into
    my affiliate site - but recently i'm starting to get "call to undefined
    function" errors

    " Fatal error: Call to undefined function: asinsearchreque st() in"

    What's strange is that problem is intermittent - and there is no way to
    reproduce it exactly - it just appears to come and go. I'm using nusoap as
    well.

    Whilst googling around , i noticed another site has a similar issue:



    if the page appears normally, just refresh a few times to get the amazon
    error.

    Another else notice this problem and if there's any solution? I suspect
    Amazon might have done something to their API ?

  • Robbie Baldock

    #2
    Re: Amazon api - call to undefined function

    On Mon, 28 Jun 2004 14:41:27 +0100, obi wan kenobi
    <smirkingchimp@ whitehouse.gov> wrote:
    [color=blue]
    >Another else notice this problem and if there's any solution? I suspect
    >Amazon might have done something to their API ?[/color]

    I thought you could only make a certain number of queries per minute?

    Or is that the Google API...


    Robbie


    Comment

    • obi wan kenobi

      #3
      Re: Amazon api - call to undefined function

      Robbie Baldock wrote:
      [color=blue]
      > On Mon, 28 Jun 2004 14:41:27 +0100, obi wan kenobi
      > <smirkingchimp@ whitehouse.gov> wrote:
      >[color=green]
      >>Another else notice this problem and if there's any solution? I suspect
      >>Amazon might have done something to their API ?[/color]
      >
      > I thought you could only make a certain number of queries per minute?
      >
      > Or is that the Google API...
      >
      >
      > Robbie[/color]

      Only 1 query per second is allowed according to the Amazon docs. Which is
      what i've done - my queries run at intervals of 5 seconds , just to play
      safe.

      They appear to have introduced some sort of throttling, so that one source
      cannot use the API in an extended run of grabbing data - that's what
      appears to be happening to me.
      I used to be able to grab data overnight - been doing it for months now.



      Comment

      • Michael Austin

        #4
        Re: Amazon api - call to undefined function

        obi wan kenobi wrote:
        [color=blue]
        > Robbie Baldock wrote:
        >
        >[color=green]
        >>On Mon, 28 Jun 2004 14:41:27 +0100, obi wan kenobi
        >><smirkingchim p@whitehouse.go v> wrote:
        >>
        >>[color=darkred]
        >>>Another else notice this problem and if there's any solution? I suspect
        >>>Amazon might have done something to their API ?[/color]
        >>
        >>I thought you could only make a certain number of queries per minute?
        >>
        >>Or is that the Google API...
        >>
        >>
        >>Robbie[/color]
        >
        >
        > Only 1 query per second is allowed according to the Amazon docs. Which is
        > what i've done - my queries run at intervals of 5 seconds , just to play
        > safe.
        >
        > They appear to have introduced some sort of throttling, so that one source
        > cannot use the API in an extended run of grabbing data - that's what
        > appears to be happening to me.
        > I used to be able to grab data overnight - been doing it for months now.
        >
        >
        >[/color]

        if you are able to check the status of the call, then you can trap the
        error, and reissue the last statement again after waiting until the next
        5 second interval.


        Michael Austin.

        Comment

        • Manuel Lemos

          #5
          Re: Amazon api - call to undefined function

          Hello,

          On 06/28/2004 10:41 AM, obi wan kenobi wrote:[color=blue]
          > Another else notice this problem and if there's any solution? I suspect
          > Amazon might have done something to their API ?[/color]

          Have you tried this Amazon access class? It uses the plain XML requests
          instead of SOAP.

          Class: Amazon API Access with PHP and XML http://www.phpclasses.org/amazon

          --

          Regards,
          Manuel Lemos

          PHP Classes - Free ready to use OOP components written in PHP
          http://www.phpclasses.org/

          PHP Reviews - Reviews of PHP books and other products
          http://www.phpclasses.org/reviews/

          Metastorage - Data object relational mapping layer generator

          Comment

          • obi wan kenobi

            #6
            Re: Amazon api - call to undefined function

            Manuel Lemos wrote:
            [color=blue]
            > Hello,
            >
            > On 06/28/2004 10:41 AM, obi wan kenobi wrote:[color=green]
            >> Another else notice this problem and if there's any solution? I suspect
            >> Amazon might have done something to their API ?[/color]
            >
            > Have you tried this Amazon access class? It uses the plain XML requests
            > instead of SOAP.
            >
            > Class: Amazon API Access with PHP and XML http://www.phpclasses.org/amazon
            >[/color]

            oooh! now that's useful!
            the soap thing is a bit of a nightmare.

            side note: i really wish someone would redesign the php classes site. great
            resource, crappy website design.



            Comment

            • Tim Van Wassenhove

              #7
              Re: Amazon api - call to undefined function

              In article <40e12980$0$236 05$afc38c87@new s.easynet.co.uk >, obi wan kenobi wrote:[color=blue]
              > side note: i really wish someone would redesign the php classes site. great
              > resource, crappy website design.[/color]

              Even that has been discussed here before :-O


              --
              Tim Van Wassenhove <http://home.mysth.be/~timvw>

              Comment

              Working...