GET Ads?user={user}&page={page}

Get all ads posted by a user. user is the user id and page is the page number Each page returns 100 ads. Example: /ads?user=asdf&page=1, where asdf is the user id The client making the request must provide asdf's authorzation token

Request Information

Parameters

NameDescriptionAdditional information
user
user id

Define this parameter in the request URI.

page
page number

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "ID": 0,
    "RegionCode": 3,
    "Place": "New York",
    "Category": "Condo For Sale",
    "EMail": "asdf@xyz.com",
    "URL": null,
    "DatePosted": "0001-01-01T00:00:00",
    "Header": "Condo For Sale",
    "Description": "2 BR/1 Bath condo in NYC for sale",
    "Teaser": null,
    "DetailClick": 0,
    "HeaderURL": null,
    "VideoCode": null,
    "ImageURL": null,
    "Manufacturer": null,
    "Model": null,
    "Price": null,
    "Year": null,
    "Phone": null,
    "AdPics": [
      {
        "$id": "2",
        "ID": 0,
        "ad_id": 0,
        "url": "http://www.srvr1.com/condo.png",
        "DatePosted": "0001-01-01T00:00:00",
        "ad": null
      }
    ]
  },
  {
    "$id": "3",
    "ID": 0,
    "RegionCode": 3,
    "Place": "Chicago",
    "Category": "House For Sale",
    "EMail": "thws@poi.com",
    "URL": null,
    "DatePosted": "0001-01-01T00:00:00",
    "Header": "House For Sale",
    "Description": "3 BR/2 Bath house in Chicago for sale",
    "Teaser": null,
    "DetailClick": 0,
    "HeaderURL": null,
    "VideoCode": null,
    "ImageURL": null,
    "Manufacturer": null,
    "Model": null,
    "Price": null,
    "Year": null,
    "Phone": null,
    "AdPics": [
      {
        "$id": "4",
        "ID": 0,
        "ad_id": 0,
        "url": "http://www.srvr2.com/house.png",
        "DatePosted": "0001-01-01T00:00:00",
        "ad": null
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfad xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Softlifecell.ClassifiedsForFreeApi.Models">
  <ad>
    <AdPics>
      <ad_pic>
        <DatePosted>0001-01-01T00:00:00</DatePosted>
        <ID>0</ID>
        <ad i:nil="true" />
        <ad_id>0</ad_id>
        <url>http://www.srvr1.com/condo.png</url>
      </ad_pic>
    </AdPics>
    <Category>Condo For Sale</Category>
    <DatePosted>0001-01-01T00:00:00</DatePosted>
    <Description>2 BR/1 Bath condo in NYC for sale</Description>
    <DetailClick>0</DetailClick>
    <EMail>asdf@xyz.com</EMail>
    <Header>Condo For Sale</Header>
    <HeaderURL i:nil="true" />
    <ID>0</ID>
    <ImageURL i:nil="true" />
    <Manufacturer i:nil="true" />
    <Model i:nil="true" />
    <Phone i:nil="true" />
    <Place>New York</Place>
    <Price i:nil="true" />
    <RegionCode>3</RegionCode>
    <Teaser i:nil="true" />
    <URL i:nil="true" />
    <VideoCode i:nil="true" />
    <Year i:nil="true" />
  </ad>
  <ad>
    <AdPics>
      <ad_pic>
        <DatePosted>0001-01-01T00:00:00</DatePosted>
        <ID>0</ID>
        <ad i:nil="true" />
        <ad_id>0</ad_id>
        <url>http://www.srvr2.com/house.png</url>
      </ad_pic>
    </AdPics>
    <Category>House For Sale</Category>
    <DatePosted>0001-01-01T00:00:00</DatePosted>
    <Description>3 BR/2 Bath house in Chicago for sale</Description>
    <DetailClick>0</DetailClick>
    <EMail>thws@poi.com</EMail>
    <Header>House For Sale</Header>
    <HeaderURL i:nil="true" />
    <ID>0</ID>
    <ImageURL i:nil="true" />
    <Manufacturer i:nil="true" />
    <Model i:nil="true" />
    <Phone i:nil="true" />
    <Place>Chicago</Place>
    <Price i:nil="true" />
    <RegionCode>3</RegionCode>
    <Teaser i:nil="true" />
    <URL i:nil="true" />
    <VideoCode i:nil="true" />
    <Year i:nil="true" />
  </ad>
</ArrayOfad>