|
楼主 |
发表于 2014-2-2 04:55:54
|
显示全部楼层
Inside <channel> Element: Note: time-related attributes specified as "integer" will often be POSIX timestamps; i.e. seconds since 1 January 1970 UTC (except when they aren't). required:
- <cl:auth> - Authentication information for this submission.
Attributes:
- username - email address used to log into craigslist account / authenticate.
- password - craigslist user password.
- accountID - A craigslist account number with sufficient block credit (or an invoiced account), where the username supplied is an authorized buyer for this accountID.
Inside <item> Elements: required:
- <title> - The title of the post.
- <description> - The content (body) of the post.
- <cl:category> - The category where this will be posted. Contents should be a valid category abbreviation.
- <cl:area> - The area (city) where this will be posted. Contents should be a valid area abbreviation.
- <cl:replyEmail> - Reply email address for this post.
Attributes:
- privacy - How reply email should be displayed on the post.
(A=don't show any email address, C=use anonymous craigslist email address, P=publicly show the replyEmail address) - outsideContactOK - (0 or 1) If set to 0, will add text to bottom of post: it's NOT ok to contact this poster with services or other commercial interests.
- otherContactInfo - Any alternate contact info text.
optional: - <cl:image position="[0-23]"> - Base 64 (rfc 2045) encoded jpeg image. The optional "position" attribute determines the order in which the images will be layed out on the posting page. The image at position 0 will be featured on search pages, etc. so put the best one there. You may specify up to 24 images.
- <cl:subarea> - Subarea where this will be posted. Ad will be posted under this subarea as well as "all areas". Contents should be a valid subarea abbreviation.
- <cl:neighborhood> - The name of the neighborhood that this post applies to. (free-form text)
- <cl:price> - Advertised price. (numeric value)
- <cl:mapLocation> - Information for creating map links.
Attributes:
- city - City name in text, such as "New York"
- state - State postal abbreviation, such as "NY"
- crossStreet1 - Cross street name
- crossStreet2 - Other cross street name
- latitude - Latitude of item (signed floating point number).
- longitude - Longitude of item (signed floating point number). See latitude.
Note: The latitude and longitude attributes determine the position of the pin for the post in the craigsist map view.
You must specify them for your post to appear in map views. - <cl
ONumber> - A purchase order number or internal tracking number for your own record-keeping purposes. (free-form text) - <cl:housingInfo> - Housing info fields.
Attributes:
- price - Advertised price. (numeric value)
- bedrooms - Number of bedrooms. (integer, 0=studio)
- sqft - Surface area of the space.
- catsOK - (0 or 1) Add Cats are OK notice to bottom of post.
- dogsOK - (0 or 1) Add Dogs are OK notice to bottom of post.
- <cl:brokerInfo> - housing broker information
Attributes:
- companyName - Broker company name.
- feeDisclosure - Broker fee disclosure.
- <cl:jobInfo> - Jobs info fields.
Attributes:
- compensation - Compensation rate. (numeric value)
- telecommuting - (0 or 1) Indicates telcommuting job.
- partTime - (0 or 1) Indicates part-time job.
- contract - (0 or 1) Indicates contract job.
- nonprofit - (0 or 1) Indicates non-profit employer.
- internship - (0 or 1) Indicates internship job.
- disability - (0 or 1) Indicates OK to repost to job developers for persons with disabilities
- recruitersOK - (0 or 1) Add Recruiters OK notice to bottom of post.
- phoneCallsOK - (0 or 1) Add Phone calls OK notice to bottom of post.
- okToContact - (0 or 1) Add OK to contact notice to bottom of post.
- okToRepost - (0 or 1) Add OK to repost notice to bottom of post.
- <cl:auto_basics> -
Attributes:
- auto_make_model - string
- auto_miles - integer
- auto_trans_auto - ("0" or "1")
- auto_trans_manual - ("0" or "1")
- auto_vin - string
- auto_year - ("1900", "1901", "1902", "1903", "1904", "1905", "1906", "1907", "1908", "1909", "1910", "1911", "1912", "1913", "1914", "1915", "1916", "1917", "1918", "1919", "1920", "1921", "1922", "1923", "1924", "1925", "1926", "1927", "1928", "1929", "1930", "1931", "1932", "1933", "1934", "1935", "1936", "1937", "1938", "1939", "1940", "1941", "1942", "1943", "1944", "1945", "1946", "1947", "1948", "1949", "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014" or "2015")
- <cl:generic> -
Attributes:
- contact_method - ("email only", "email or phone", "email or text", "phone only", "phone, text, or email", "text only" or "text or phone")
- contact_name - string
- contact_ok - ("0" or "1")
- contact_phone - string
- contact_phone_ok - ("0" or "1")
- contact_text_ok - ("0" or "1")
- fee_disclosure - string
- has_license - ("0" or "1")
- license_info - string
- phonecalls_ok - ("0" or "1")
- repost_ok - ("0" or "1")
- see_my_other - ("0" or "1")
- <cl:housing_basics> -
Attributes:
- bathrooms - ("1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "6.5", "7", "7.5", "8", "8.5", "9+", "shared" or "split")
- housing_type - ("apartment", "assisted living", "condo", "cottage/cabin", "duplex", "flat", "house", "in-law", "land", "loft", "manufactured" or "townhouse")
- is_furnished - ("0" or "1")
- laundry - ("laundry in bldg", "laundry on site", "w/d hookups" or "w/d in unit")
- no_smoking - ("0" or "1")
- parking - ("attached garage", "carport", "detached garage", "off-street parking", "street parking" or "valet parking")
- wheelchaccess - ("0" or "1")
- <cl:housing_terms> -
Attributes:
- rent_period - ("daily", "monthly", "weekly" or "yearly")
- <cl:job_basics> -
Attributes:
- company_name - string
- disability_ok - ("0" or "1")
- is_contract - ("0" or "1")
- is_forpay - ("0" or "1")
- is_internship - ("0" or "1")
- is_nonprofit - ("0" or "1")
- is_parttime - ("0" or "1")
- is_telecommuting - ("0" or "1")
- is_volunteer - ("0" or "1")
- recruiters_ok - ("0" or "1")
- remuneration - string
Posting Response Format: Below are some examples of an RSS response for validation and posting, as well as a description.
Validation:
- <rdf:RDF xmlns="http://purl.org/rss/1.0/"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:cl="http://www.craigslist.org/about/cl-bulk-ns/1.0">
- <channel>
- <items>
- <rdf:Seq>
- <rdf:li rdf:resource="NYCBrokerHousingSample1"/>
- <rdf:li rdf:resource="NYCBrokerHousingSample2"/>
- </rdf:Seq>
- </items>
- </channel>
- <item rdf:about="NYCBrokerHousingSample1">
- <cl:postedStatus>VALID</cl:postedStatus>
- <cl:postedExplanation>This posting seems to be valid.</cl:postedExplanation>
- <cl:previewHTML><![CDATA[
- HTML preview of posting will appear here.
- ]]></cl:previewHTML>
- </item>
- <item rdf:about="NYCBrokerHousingSample2">
- <cl:postedStatus>VALID</cl:postedStatus>
- <cl:postedExplanation>This posting seems to be valid.</cl:postedExplanation>
- <cl:previewHTML><![CDATA[
- HTML preview of posting will appear here.
- ]]></cl:previewHTML>
- </item>
- </rdf:RDF>
复制代码 Sample RSS Validation Response |
|