Difference between revisions of "Image"

From Gvp-public
Jump to navigation Jump to search
(Undo revision 1682 by Pcl245 (talk))
 
Line 53: Line 53:
 
:        "Ext": ".jpg"
 
:        "Ext": ".jpg"
 
}
 
}
* Example of use: <br>
 
: Request <br>
 
::http://backendapi.dev7.gvp.mediaibox.com.br/Data/Image/25527,25046,15955?limit=100&offset=0 <br>
 
: Response <br>
 
 
{
 
  "StatusCode": 0,
 
  "Severity": 1,
 
  "HttpStatusCode": 200,
 
  "StatusMessage": "OK",
 
  "Content": {
 
    "List": [
 
      {
 
        "Url": "http://gvp.dev3.storage.s3.amazonaws.com:80/IMAGES/00/00/01/15955_C0563BF8D63430C4.jpg?AWSAccessKeyId=AKIAIQWRF7NFWWI5X5BQ&Expires=1422532811&Signature=y6xPBiO4wBfoNGS8JxcXLGnhDN8%3d",
 
        "Width": 1024,
 
        "Height": 768,
 
        "Type": 7,
 
        "Ext": ".jpg",
 
        "ID": 15955
 
      },
 
      {
 
        "Url": "http://gvp.dev4.storage.s3.amazonaws.com:80/IMAGES/00/00/02/25046_8297EE4044CAD8B0.jpg?AWSAccessKeyId=AKIAIQWRF7NFWWI5X5BQ&Expires=1422532811&Signature=wGZmmzUl9zcimKXEXBdTWJcQQyo%3d",
 
        "Width": 320,
 
        "Height": 240,
 
        "Type": 7,
 
        "Ext": ".jpg",
 
        "ID": 25046
 
      },
 
      {
 
        "Url": "http://gvp.dev4.storage.s3.amazonaws.com:80/IMAGES/00/00/02/25527_2651E2061FBE51C8.jpg?AWSAccessKeyId=AKIAIQWRF7NFWWI5X5BQ&Expires=1422532811&Signature=0vd7HyKJ9YrmfRDIMsO9Y93%2bvxM%3d",
 
        "Width": 220,
 
        "Height": 330,
 
        "Type": 7,
 
        "Ext": ".jpg",
 
        "ID": 25527
 
      }
 
    ],
 
    "Count": 3
 
  }
 
}
 
  
  

Latest revision as of 14:14, 8 February 2016

Image object represent an image with url and size information. Contains the type (icon, banner, or other) and the extension for the image as jpg, png, etc.

Members

Field Data Type Description
ID int Unique identifier for the Subscription
Url String Source of the image on server.
Width int Number that represent the width size of the image
Height int Number that represent the height size of the image
Type int Enumeration that represent a kind of image is returned.
Ext String String that contains the extension of the image. (JPG, PNG, etc).


Example

{

"ID": 608053,
"Url": "http://media.gvp.telefonica.com/storagearea0/IMAGES/00/00/60/608053_46B487019AC7FF6A.jpg",
"Width": 140,
"Height": 206,
"Type": 1,
"Ext": ".jpg"

}


Known issues

None


Version history

API Version Number Change description Changes author
1.0 Initial data type implementation Harley Cabral


See also