/api/styles

This API GET method returns the styles used in gzaas.com in JSON format.

The method is called like this:
http://gzaas.com/api/v1/styles
(See that the version of the API is included in the HTTP request)

Optional Parameters

numResults number of styles returned
nowFeatured featured styles?
0: not neccesary
1: yes, featured styles

 

Example

http://gzaas.com/api/v1/styles?numResults=2&nowFeatured=1

{
    "0": {
          "id": "4",
          "hashtag": "s_chewy1",
          "description": "Chewy love",
          "font": {
              "id": "37",
              "hashtag": "chewy",
              "description": "Chewy",
              "fontFace": "1",
              "stylesheet": "http://fonts.googleapis.com/css?family=Chewy:regular",
              "fontFamily": "'Chewy'",
              "fontServer": "2",
              "designer": "Sideshow",
              "urlDesigner1":

"http://code.google.com/webfonts/designer?designer=Sideshow",
              "urlDesigner2": "http://squidart.com/",
              "nowFeatured": "1"
          },
          "pattern": {
              "id": null,
              "hashtag": null,
              "description": null,
              "url": null,
              "server": null,
              "designer": null,
              "urlDesigner1": null,
              "urlDesigner2": null,
              "nowFeatured": null
          },
          "color": "ffffff",
          "backcolor": "FE28A2",
          "shadow": null,
          "designer": "ojoven",
          "urlDesigner": "http://twitter.com/ojoven",
          "nowFeatured": "1"
    },
    "1": {
          "id": "1",
          "hashtag": "s_chunky1",
          "description": "Chunky Yellow",
          "font": {
              "id": "9",
              "hashtag": "chunkfive",
              "description": "ChunkFive",
              "fontFace": "1",
              "stylesheet": "/css/fonts/ChunkFive/stylesheet.css",
              "fontFamily": "'ChunkFiveRegular'",
              "fontServer": "1",
              "designer": "The League of Moveable Type",
              "urlDesigner1":

"http://www.fontsquirrel.com/foundry/The-League-of-Moveable-Type",
              "urlDesigner2": "http://www.theleagueofmoveabletype.com",
              "nowFeatured": "0"
          },
          "pattern": {
              "id": null,
              "hashtag": null,
              "description": null,
              "url": null,
              "server": null,
              "designer": null,
              "urlDesigner1": null,
              "urlDesigner2": null,
              "nowFeatured": null
          },
          "color": "000000",
          "backcolor": "ffe303",
          "shadow": null,
          "designer": "ojoven",
          "urlDesigner": "http://twitter.com/ojoven",
          "nowFeatured": "1"
    }
}

 

Breakdown of API JSON:

id Unique id for this style
hashtag Hashtag that identifies the style
description Complete Name of the style
font Font used for the style. See /api/fonts for the font schema.
pattern Pattern used for the style. See /api/patterns for the pattern schema.
color Font color of the style (hexadecimal, no #)
backcolor Background color of the style (hexadecimal, no #)
shadow Shadows used for the style.
Css like shadow sintaxis.
designer Name of the style designer
urlDesigner Link back to the style designers portfolio
nowFeatured Is it featured in the editor?
0: no
1: yes