Skip to content

Instantly share code, notes, and snippets.

@krusty
Created September 20, 2012 17:38
Show Gist options
  • Save krusty/3757280 to your computer and use it in GitHub Desktop.
Save krusty/3757280 to your computer and use it in GitHub Desktop.
Request URL:http://sandbox.catalogchoice.org/v1/catalog_choices/
Request Method:POST
Status Code:201 Created
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Authorization:OAuth e0bmng74d6zevlyq4gngpf11n
Connection:keep-alive
Content-Length:211
Content-Type:application/json
Cookie:_cchoice_session=2bb9e02c282f1ad4fd3657174b1dff64; optimizelyEndUserId=oeu1348082864198r0.6962332234252244; optimizelyBuckets=%7B%7D; __utma=17534950.563763435.1348082866.1348082866.1348082866.1; __utmc=17534950; __utmz=17534950.1348082866.1.1.utmcsr=local.cc:3000|utmccn=(referral)|utmcmd=referral|utmcct=/widget/nyc/index.html; __utma=131579661.2015408077.1347992096.1348092857.1348160762.6; __utmb=131579661.24.9.1348162626771; __utmc=131579661; __utmz=131579661.1347992096.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Host:sandbox.catalogchoice.org
Origin:http://sandbox.catalogchoice.org
Referer:http://sandbox.catalogchoice.org/widget/nyc/index.html
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
X-Client:NYC Widget, 1.0, Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
X-Requested-With:XMLHttpRequest
Request Payload
{"catalog_choice":{"catalog_id":51,"mail_preference_id":147,"individual_id":465,"mailbox_id":234,"optout_reason_id":1,"customer_number":"CUSTOMER NUMBER VALUE","customer_source_code":"KEY OR SOURCE CODE VALUE"}}
Response Headersview source
Cache-Control:no-cache
Connection:keep-alive
Content-Length:1154
Content-Type:application/json; charset=utf-8
Server:nginx/0.7.65 + Phusion Passenger 2.2.10 (mod_rails/mod_rack)
Status:201
X-Powered-By:Phusion Passenger (mod_rails/mod_rack) 2.2.10
X-Runtime:60
catalog_choice: {catalog:{id:51,…}, updated_at:2012-09-20T10:37:26-07:00, status:Waiting,…}
automated: false
catalog: {id:51,…}
id: 51
notification_method: {facilitated?:false, user_action_noun:null, email_address:[email protected],…}
email_address: "[email protected]"
facilitated?: false
telephone_number: "800-953-0814"
type: "NilNotificationMethod"
url: null
user_action_instructions: null
user_action_noun: null
user_action_verb: null
title: "AutoSport"
created_at: "2012-09-20T10:37:26-07:00"
customer_number: "CUSTOMERNUMBERVALUE"
customer_source_code: "KEY OR SOURCE CODE VALUE"
id: 466
individual: {updated_at:2012-09-20T10:08:31-07:00, hidden:false, display_name:lucas verified? 2, id:465,…}
created_at: "2012-09-20T10:08:31-07:00"
display_name: "lucas verified? 2"
hidden: false
id: 465
updated_at: "2012-09-20T10:08:31-07:00"
mailbox: {updated_at:2012-09-20T10:08:40-07:00, hidden:false, display_name:home, zip_code:12345, state:LA,…}
address1: "lkj"
address2: "lkj"
city: "lkj"
country: "US"
created_at: "2012-09-20T10:08:40-07:00"
display_name: "home"
hidden: false
id: 234
state: "LA"
updated_at: "2012-09-20T10:08:40-07:00"
zip_code: "12345"
optout_reason: {position:1, id:1, description:Prefer not to answer}
description: "Prefer not to answer"
id: 1
position: 1
status: "Waiting"
updated_at: "2012-09-20T10:37:26-07:00"
user_action_values: {}
web_activity_statement_url: "https://sandbox.catalogchoice.org/catalogs/51-AutoSport/activity_statement"
web_next_action_url: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment