• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Peecs Webservice - Built in JSON API

    Discussion in 'Archives' started by peec, Nov 30, 2012.

    1. peec

      peec Community Developer

      Joined:
      Nov 23, 2012
      Messages:
      19
      Likes Received:
      2
      Trophy Points:
      0
      Peecs Webservice

      Note: This is work in progress, but releases is done daily.


      The goal of this plugin is to provide a built in webserver that can control and get data of honorbuddy. It's a Plugin that makes is possible to automatically run a webserver that provides a JSON REST service locally hosted by you (this means no thirdparty webservices to register at, and also FRESH DATA!).

      The plugin has some simple settings such as your secret API key ( you chose one ) and what port you want to run the webservice on. The strength of this plugin is that it's you who are hosting the service, and it starts once you have started Honorbuddy.

      There are no cool apps for this (yet), I will concentrate now creating a solid API with api's for some clients such as PHP and JS. JS is priority for now as you can create very powerful JS applications with this REST API.


      Features:

      Implementations

      • Can send and retrieve PM's ingame.
      • Can screenshot and deliver screenshots.
      • Can show tons of stats.
      • Can start/stop bot

      Technical

      • Supports JSON and JSONP
      • Can run on any port!
      • Any client can connect to this API.
      • Contains sample clients.
      • Great implementation of webservice standard (status codes etc. )
      • Focus on good error reporting and failsafe API.



      Installation / Testing:

      1. Download

      Download latest from:
      https://github.com/peec/honorbuddy-ws/archive/master.zip

      Or use git:
      https://github.com/peec/honorbuddy-ws.git


      2. Unzip

      Create a folder in the plugins directory named "PeecsWebService" and put all the files in this folder.

      Restart honorbuddy if its already started.

      3. Test

      Test the service by going to "PeecsWebService\clients\js" and open testapi.html in your webbrowser!

      This testapi.html uses JSONP between honorbuddy / client.


      Bugs:

      Known issues:
      https://github.com/peec/honorbuddy-ws/issues

      Report issues here:
      https://github.com/peec/honorbuddy-ws/issues


      Help with patches / code / documentation:

      Github: https://github.com/peec/honorbuddy-ws

      I gladly take pull requests of documentation / source code on github!
       

      Attached Files:

      • 1.jpg
        1.jpg
        File size:
        38.8 KB
        Views:
        596
      • 2.jpg
        2.jpg
        File size:
        42.7 KB
        Views:
        501
    2. lilsavalex

      lilsavalex Member

      Joined:
      Dec 14, 2012
      Messages:
      579
      Likes Received:
      2
      Trophy Points:
      18
      You deserve a lot more credit, I'm surprised no one has commented on this.
      Great work!

      I personally won't try it but I probably would if it was more visually pleasing. With a great UI, it would be great!
       
    3. Swiftsure

      Swiftsure New Member

      Joined:
      Sep 10, 2012
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      What about people who are using more than one account at the same time? I mean, if I start this plugin with my x6 accs, will there be seperate 6 web servers?
       
    4. razer

      razer New Member

      Joined:
      Apr 29, 2012
      Messages:
      1,347
      Likes Received:
      7
      Trophy Points:
      0
      Has anyone else tried this, it looks neat.
       
    5. PsychoSTyle

      PsychoSTyle New Member

      Joined:
      Jun 13, 2010
      Messages:
      87
      Likes Received:
      0
      Trophy Points:
      0
      i like the fact, that you are using json

      will watch this :)
       
    6. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      Hi, Peec,

      Thanks for the contribution! However, the offering is not in compliance with the BosslandGmbH forum rules.

      Offerings must offer a .zip file hosted on the BosslandGmbH forums to be compliant. We ask all authors to adhere to the same set of rules. Please bring the first post of this thread into compliance by 1-Feb-2014.

      cheers,
      chinajade
       
    7. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63

    Share This Page