Perl Library for API-NG

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Merlin
    Junior Member
    • Jan 2009
    • 56

    #1

    Perl Library for API-NG

    As there don't seem to be any 'proper' Perl libraries for the new API (as in "written by people who know what they're doing"), I thought I'd stick my own up at:
    https://github.com/MyrddinWyllt/WWW-BetfairNG.
    Tested and working on Slackware 14.1 (x86-64 and Raspberry Pi) and on Raspbian (Debian for the Pi), BUT couldn't get non-interactive login to work on a virtual server running CentOS 5 (SSLeay problem which I'll look into when I get a chance; everything else works with a valid session token).

    Any comments, suggestions or feedback would be gratefully received, especially whether it runs on anything other than Linux, and what I need to change if it doesn't.

    Cheers
  • Merlin
    Junior Member
    • Jan 2009
    • 56

    #2
    Perl Library for API-NG

    Now updated to include Betfair API release of 2014-09-29 here, and sample code / getting started guide here.

    Comment

    • cherrybets.
      Junior Member
      • Jun 2013
      • 5

      #3
      Thank you for this ...

      Originally posted by Merlin View Post
      Now updated to include Betfair API release of 2014-09-29 here, and sample code / getting started guide here.
      I am trying to get my existing PERL system updated to the new API and I am sure my developer will be immensely pleased with what you have provided here and will save him much time.

      Paul

      Comment

      • Merlin
        Junior Member
        • Jan 2009
        • 56

        #4
        New Release

        I've just released a new version of this module (WWW::BetfairNG) to include the Race Status API. Also now supports the Australian exchange and the Heartbeat API, as well as the ability to do a detailed check on parameters.

        Available on github or via CPAN.

        Comment

        • Merlin
          Junior Member
          • Jan 2009
          • 56

          #5
          Certificate Login Not Working

          As of this morning (2016-05-16) SSL certificate login using this module is NOT WORKING. I am looking into a full fix at the moment, but in the meantime please change your code to just use the interactive login (which is working fine). Sorry for any inconvenience, I will get back to you when I have identified the problem.

          UPDATE
          This is caused by the betfair login server cert being invalid - hopefully this will be fixed soon. I am loathe to change the module to work around this, as a proper TLS exchange should validate on both sides - perhaps I will introduce a switch to turn checking off for situations like this, with a suitable warning attached
          Last edited by Merlin; 16-05-2016, 04:42 PM. Reason: Update

          Comment

          • Merlin
            Junior Member
            • Jan 2009
            • 56

            #6
            New Release

            A new release (v0.13) of WWW::BetfairNG is now available from github or CPAN. This incorporates the new functionality introduced in August and October 2016, and solves the problem with invalid Betfair certs during login.

            Merlin

            Comment

            • Merlin
              Junior Member
              • Jan 2009
              • 56

              #7
              New Release (v0.14)

              A new release of WWW::BetfairNG (v0.14) is now available on CPAN and GitHub.
              This includes support for the 'listRunnerBook' method introduced on 2017-03-28.

              cheers

              Merlin
              Last edited by Merlin; 06-04-2017, 10:31 PM. Reason: Clarification

              Comment

              • Merlin
                Junior Member
                • Jan 2009
                • 56

                #8
                New Release (v0.15)

                A new release of WWW::BetfairNG (v0.15) is now available on CPAN and GitHub.
                This has the updated endpoint for non-interactive login which must be used from 2019-01-22.

                cheers

                Merlin

                Comment

                Working...
                X