Skip to content

Instantly share code, notes, and snippets.

@dlitvakb
Created April 24, 2012 20:12
Show Gist options
  • Select an option

  • Save dlitvakb/2483326 to your computer and use it in GitHub Desktop.

Select an option

Save dlitvakb/2483326 to your computer and use it in GitHub Desktop.
//Este funciona
{
action_params: { },
display_name: "Flag as inappropriate",
action_type: "external_link",
preconditions: {
hard_dependencies: false,
dependencies: [ ],
precondition_data: {
source_name: "Google Places",
step2: "Submit",
step1: "Fill in form"
},
precondition_template: "#generic_instructions_dialog",
precondition_type: "instructions",
precondition_disable_option: true
},
post_action_type: [ ],
external_url: "http://www.google.com/support/contact/bin/request.py?entity=%7B%22author%22:%22AIe9_BFtxKdVbwRDm_gKPnaMfqneH6wpOTWy6WuuBI8ZgkjOgPTxf35gcuZcZ0sV5owO80Q52YUN%22,%22groups%22:%5B%22maps%22%5D,%22id%22:%22http://maps.google.com/%3Fq%3DPhilz%2BCoffee(650)%2B251-9798%2Bloc:%2B3191%2BMiddlefield%2BRoad,%2BPalo%2BAlto,%2BCA%2B94306%5Cu0026gl%3DUS%5Cu0026sll%3D37.429389,-122.122721%22,%22shortAuthor%22:%22116781294179252424346%22%7D&client=13&contact_type=anno&hl=en&source=maps&ved=0CCMQhgo&sa=X&ei=AgaXT9jPFJfgygX65eGUCQ",
action_id: "inappropriate"
},
//Este no
{
action_params: { },
display_name: "Report Abuse",
action_type: "external_link",
preconditions: {
hard_dependencies: true,
dependencies: [
{
alert_id: "37487e9996a12671a3414f488533d7ef"
}
],
precondition_data: {
source_name: "Twitter",
before_text: "Twitter allows you to report an abusive, off-topic, or otherwise objectionable Tweets about your business.",
tweet_url: "https://twitter.com/intent/retweet?tweet_id=194875931775602688",
after_text: "Click "Continue" to go to the Twitter Help Center, where you'll follow their steps to file a report."
},
precondition_template: "#instructions_dialog",
precondition_type: "instructions",
precondition_disable_option: false
},
post_action_type: [ ],
external_url: "https://support.twitter.com/forms/abusiveuser",
action_id: "inappropriate"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment