[API] FFR API Beta

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • #1
    Doing the wrong thing the right way since 2010.
    FFR Simfile Author
    FFR Administrator
    Velocity
    • Jul 2007
    • 1821

    [API] FFR API Beta

    I've been working on a small side-project that might help some people who like making there own stats.

    http://www.flashflashrevolution.com/api/

    While currently it only supports retrieving a players levelranks and recent games, it can be expanded to provide more data to programmers.

    Since it's currently in beta, it might have an odd error here and there, but for the most part, it should be fine. There is a credit system in place to prevent a ton of abuse, so it should allow 50 level rank loads an hour.

    If you have any suggestions of how to improve this, please suggest.

    ---
    Feb 6th, 2015:
    Added: Recent Games, use "action=recent_games".
    Last edited by Velocity; 02-6-2015, 06:30 PM.
  • #2
    🥓<strong><span style="col
    justin_ator
    • Mar 2007
    • 7648

    Re: [API] FFR API Beta

    I like where this is going. Nice work

    Comment

    • #3
      The Doctor
      TheSaxRunner05
      • Apr 2006
      • 6144

      Re: [API] FFR API Beta

      I don't get it


      Comment

      • #4
        no
        FFR Simfile Author
        Fission
        • Jan 2004
        • 1850

        Re: [API] FFR API Beta

        http://rest.elkstein.org/

        it's an interface for developers to programmatically leverage information from FFR's backend. pretty simple to understand if you are a developer.

        Comment

        • #5
          ( ¯u¯)-b
          FFR Music Producer
          s1rnight
          • Aug 2011
          • 392

          Re: [API] FFR API Beta

          it seems i can only access the first two levels for a user's level ranks ("Terror from Beyond" and "Get on the Move"). is there a reason for this?
          Last edited by s1rnight; 12-16-2014, 02:18 AM.

          Comment

          • #6
            Doing the wrong thing the right way since 2010.
            FFR Simfile Author
            FFR Administrator
            Velocity
            • Jul 2007
            • 1821

            Re: [API] FFR API Beta

            opps, I was debugging something.

            Should be fixed.
            Last edited by Velocity; 12-16-2014, 07:56 AM.

            Comment

            • #7
              ( ¯u¯)-b
              FFR Music Producer
              s1rnight
              • Aug 2011
              • 392

              Re: [API] FFR API Beta

              woot~ thank you!

              Comment

              • #8
                FFR Wiki Admin
                noname219
                • May 2007
                • 1694

                Re: [API] FFR API Beta

                What does the timestamp means ?

                Comment

                • #9
                  Doing the wrong thing the right way since 2010.
                  FFR Simfile Author
                  FFR Administrator
                  Velocity
                  • Jul 2007
                  • 1821

                  Re: [API] FFR API Beta

                  Originally posted by noname219
                  What does the timestamp means ?
                  Credits:
                  Time till the IP credits reset.

                  Levelranks:
                  Refers to the time when that score was recorded.

                  It's in Unix/Epoch Time.
                  Last edited by Velocity; 12-16-2014, 10:15 AM.

                  Comment

                  • #10
                    Wiki Staff
                    llyair
                    • Jun 2014
                    • 307

                    Re: [API] FFR API Beta

                    Hi, I came across this page and wanted to thank you for doing this side project It seems like it could be really useful and fun for some players!

                    Edit (deleting original question):
                    I was confused about the user API key and IP credits. But it's making more sense after thinking about it. Yay!
                    Last edited by llyair; 12-23-2014, 10:56 AM.

                    Comment

                    • #11
                      ( ¯u¯)-b
                      FFR Music Producer
                      s1rnight
                      • Aug 2011
                      • 392

                      Re: [API] FFR API Beta

                      is there any chance you could add "notes in song" under the "info" bracket on the levelranks json? need it for a script

                      Comment

                      • #12
                        Doing the wrong thing the right way since 2010.
                        FFR Simfile Author
                        FFR Administrator
                        Velocity
                        • Jul 2007
                        • 1821

                        Re: [API] FFR API Beta

                        Originally posted by s1rnight
                        is there any chance you could add "notes in song" under the "info" bracket on the levelranks json? need it for a script
                        I added "notes" and "length" for song info.

                        Comment

                        • #13
                          Wiki Staff
                          llyair
                          • Jun 2014
                          • 307

                          Re: [API] FFR API Beta

                          Hi again (: I'm using the JSON values returned, I don't know if it's just me, but I'm getting that song names <2008> and <00.01> are coming back as integers while the others are strings. And in the case of <00.01>, the song name is actually (truncated?) to simply 0.

                          "info":{...
                          "name":2008
                          ...}

                          "info":{...
                          "name":0
                          ...}

                          I guess I just ran into this now and it crashed my program (typechecking threw an error), so I wanted to bring it up as an fyi to anyone else who might run into the same thing ^^ I'm not familiar with handling JSON or even xml data in general, though, so maybe it's just me?

                          But I added a check for integers, which works fine, and I just need to assume that when I see the song 0 it means 00.01. Sooo yep, just wanted to put this out there~

                          EDIT1:
                          Ohh okay I just checked the xml, it has ![CDATA[ 2008 ]] and ![CDATA[ 00.01 ]], which I think is expected... maybe I should switch ^^

                          EDIT2:
                          Lol not to make this point ad nauseam, either, but since I'm here anyways, here's a list c:

                          "136.6" --> 136
                          "20031023" --> 20031023
                          "300" --> 300
                          "3020" --> 3020
                          Last edited by llyair; 01-31-2015, 07:53 PM.

                          Comment

                          • #14
                            Doing the wrong thing the right way since 2010.
                            FFR Simfile Author
                            FFR Administrator
                            Velocity
                            • Jul 2007
                            • 1821

                            Re: [API] FFR API Beta

                            Originally posted by llyair
                            Hi again (: I'm using the JSON values returned, I don't know if it's just me, but I'm getting that song names <2008> and <00.01> are coming back as integers while the others are strings. And in the case of <00.01>, the song name is actually (truncated?) to simply 0.

                            "info":{...
                            "name":2008
                            ...}

                            "info":{...
                            "name":0
                            ...}

                            I guess I just ran into this now and it crashed my program (typechecking threw an error), so I wanted to bring it up as an fyi to anyone else who might run into the same thing ^^ I'm not familiar with handling JSON or even xml data in general, though, so maybe it's just me?

                            But I added a check for integers, which works fine, and I just need to assume that when I see the song 0 it means 00.01. Sooo yep, just wanted to put this out there~

                            EDIT1:
                            Ohh okay I just checked the xml, it has ![CDATA[ 2008 ]] and ![CDATA[ 00.01 ]], which I think is expected... maybe I should switch ^^

                            EDIT2:
                            Lol not to make this point ad nauseam, either, but since I'm here anyways, here's a list c:

                            "136.6" --> 136
                            "20031023" --> 20031023
                            "300" --> 300
                            "3020" --> 3020
                            I'll have it fix in a few minutes (hopefully). I forget about the level names that are numbers.
                            Last edited by Velocity; 01-31-2015, 08:40 PM.

                            Comment

                            • #15
                              Wiki Staff
                              llyair
                              • Jun 2014
                              • 307

                              Re: [API] FFR API Beta

                              Originally posted by Velocity
                              I'll have it fix in a few minutes (hopefully). I forget about the level names that are numbers.
                              No worries, Velocity!! (: I'm in no rush for sure (: Thank you so much, though, this change would be awesome ^-^

                              Comment

                              Working...