SpiffyJr's Blogaroo

Happenings of the man known as SpiffyJr

  • Home
  • About
    • Inspiration
    • Resume
  • Projects
    • Blitzaroo
    • phpRaider
    • Zend Calendar
  • Docs
    • Blitzaroo API
    • SpiffyCalendar Docs
    • SpiffyDb Docs
  • Downloads
  • Technologies
    • Doctrine ORM
    • Dojo
    • PHP
    • Zend Framework
  • Other
    • License
Twitter RSS
Tag Archives: json

More information on the API for Blitzaroo

Posted on October 2, 2009 by SpiffyJr
No comments

I will be using a RESTful API. I don’t have much time to post so I thought I would give a quick snippet of JSON output from an event list request.

A successful response:

{

    * request: "/api/events?format=json"
    *
      -
      items: [
          o
            -
            {
                + id: 16
                + user_id: 1
                + guild_id: 11
                + character_id: 1
                + title: "Test Event for Blitzaroo"
                + description: "This is a test event for Blitzaroo to demonstrate how the JSON output will look. XML will be very similar in output. All information receives a request, HTTP response code and a list of items or an error code."
                + date: "2009-10-02"
                + invite_time: "00:00:00"
                + start_time: "00:00:00"
                + freeze_time: "00:00:00"
                + duration: 4
                + min_level: 0
                + max_level: 40
                + limit: 10
                + guild_only: 1
                + character_name: "Test Character"
                + guild_name: "Team Trammel"
                + user_name: "SpiffyJr"
            }
      ]

}

Unsuccessful

{

    * request: "/api/events?format=json"
    * error: "You are not authorized for that request"

}
GD Star Rating
loading...
Categories: Blitzaroo | Tags: api, Blitzaroo, json, php
  • Recent Posts

    • Keep your Git fork clean
    • Get started with Zend Framework 2 modules!
    • More Doctrine 2 and Zend Framework integration goodies!
    • Super sexy URLs with ZF and the joy of controller plugins!
    • Formatting your API to work with dojox.data.JsonRestStore (#dojo)
  • Categories

    • Other
      • Random
    • Projects
      • Blitzaroo
      • phpRaider
      • SpiffyDb
      • View Helpers
      • Zend Calendar
    • SpiffyJr
    • Technologies
      • Dojo
      • PHP
      • Zend Framework
  • Tag Cloud

      Ajax Algorithm api Blitzaroo Blog BSD licenses calendar Cascading Style Sheets CSS database Data Formats Dojo Dojo Toolkit event Framework game Google HTML HTML element JavaScript JQuery json Languages mapper Marketing mmorpg model php Programming Projects Scripts Source code Style sheet Style Sheets Twitter Website zend Zend Framework
  • Archives

    • December 2011
    • November 2011
    • July 2011
    • April 2011
    • March 2011
    • December 2010
    • November 2010
    • October 2010
    • March 2010
    • February 2010
    • November 2009
    • October 2009
    • September 2009
© SpiffyJr's Blogaroo. Proudly Powered by WordPress | Nest Theme by YChong