Getting Started

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sun
    Junior Member
    • Jul 2010
    • 13

    #1

    Getting Started

    On the bdp homepage, under "API-NG - Free trial available!" I clicked "Create an application key here to start developing now!". This takes me to the Account API-NG visualiser where I require a Session Token (ssoid) before I can proceed any further.

    Sorry for asking such a basic question, but what's the easiest way to get a session key into my clipboard so that I can get started? Another thread suggests that if you are already logged in, it will just work. But that is not the case for me. There is also mention of a login button, but I don't have one.

    I can see my betfair.com ssoid in the javascript console. But I can't copy and paste it.
    Last edited by sun; 08-09-2013, 01:21 PM.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi sun,

    We will update the documentation with regards to this shortly.

    You can obtain a sessionToken using either of the methods below:
    • Login to www.betfair.com and copy the session token from the javascript console i.e. the ssoid cookie for www.betfair.com
    • Implement API-NG login by following the instructions here

    Comment

    • sun
      Junior Member
      • Jul 2010
      • 13

      #3
      Hi BDP

      1) As clearly stated in my original post, the cookie can be viewed in the javascript console, but not copied to the clipboard. Are you suggesting doing it manually every time?! That would be very time-consuming and error-prone. It is not really human-readable.

      2) As to your second suggestion, how about putting the login into the demo apps? (In any case, this procedure only works for customers who already have an app key. New developers would need an app key before they could use the app method to login, Catch-22)

      Comment

      • sun
        Junior Member
        • Jul 2010
        • 13

        #4
        Workaround - If you use IE rather than the recommended Chrome, you are able to copy cookie contents to the clipboard. They are not so easy to find, though!

        Comment

        • schmoopies
          Junior Member
          • Sep 2013
          • 4

          #5
          Did you solve this?

          Hi Sun,
          I am like you and am going round and round in circles. I have finally copied my Session ID from within Firefox (instead of Chrome) but can't generate an AppKey from:
          https://api-ng.betstores.com/account/
          like they suggest.
          Did you solve it?
          Thanks

          Comment

          • sun
            Junior Member
            • Jul 2010
            • 13

            #6
            What error did you get? Once I had the ssoid in my clipboard, I had no further problems. createDeveloperAppKeys worked fine for me in the visualiser. I can only suggest obvious things that you have probably already tried:-

            Did you remove any quotes from the ssoid displayed by firefox?
            Did you fill in the Application Name field?

            Comment

            • schmoopies
              Junior Member
              • Sep 2013
              • 4

              #7
              Obtaining the SSOID

              This is a little old but I had the same problems obtaining the SSOID.

              To help others in the future, I found this via Chrome:

              1) You CAN actually copy the ssoid from the Java screen. It isn't obvious but if you go to Tools/Developer/Cookies and scroll to the ssoid, you can actually highlight it with the mouse and right-click/copy. I then paste it into my Excel code and go forth and bet

              2) Easier is to use "chrome://settings/cookies" and filter "betfair". This presents all the cookies and you just select the ssoid button and copy the id.

              I am still trying to work out how to get this via code to prevent all this manual rubbish but doing this once a day is the solution for now.

              Comment

              • gus
                Senior Member
                • Jan 2009
                • 134

                #8
                I usually find that if I first log-in to the Betfair website, and then open the Accounts Visualiser, then the SSOID field is already populated with my ssoid automatically.

                Possibly that's because I already have an appKey, but it's worth a try.

                If that desn't work for you, I do have a very basic java application that can fetch and display your ssoid for you ... pm me for the URL if interested.
                Last edited by gus; 05-09-2014, 10:17 AM. Reason: spelling!

                Comment

                Working...
                X