This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a sample payload we post to /conversations.json | |
"{\"customer\":{\"email\":\"[email protected]\"},\"mailbox\":{\"id\":45263},\"reload\":true,\"subject\":\"Test42\",\"tags\":[\"app\"],\"threads\":[{\"body\":\"Test42\\u003Cbr /\\u003E\\u003Cbr /\\u003EWith\\u003Cbr /\\u003E\\u003Cbr /\\u003ELine\\u003Cbr /\\u003EBreaks.\\u003Cbr/\\u003E\\u003Cbr/\\u003E\\u003Cbr/\\u003E-----\\u003Cbr/\\u003ECZDATA\\u003Cbr/\\u003E{\\\"conversation_id\\\":\\\"3TJHJQ\\\",\\\"message_id\\\":\\\"10QHPC5\\\"}\",\"createdBy\":{\"email\":\"[email protected]\",\"type\":\"customer\"},\"type\":\"customer\"}]}" | |
When I curl that conversation | |
curl -u APIKEY:X https://api.helpscout.net/v:X https://api.helpscout.net/v1/conversations/240823781.json | |
the "body" returned has newline characters inserted before each HTML break tag. Prior to Aug 18 message bodies did not have those newline charcters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -u 123APIKEY:X https://api.helpscout.net/v1/conversations/192267712.json \ | |
-H "Content-Type: application/json" -X POST \ | |
-d "{\"body\":\"<img onload='alert(1010101);' src='https://www.google.com/logos/doodles/2016/pandit-ravi-shankars-96th-birthday-6265541272535040-res.png'\",\"createdBy\":{\"email\":\"[email protected]\",\"type\":\"customer\"},\"reload\":true,\"type\":\"customer\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 139960307, | |
"folderId": 504966, | |
"type": "email", | |
"isDraft": false, | |
"number": 2934, | |
"owner": null, | |
"mailbox": { | |
"id": 45263, | |
"name": "Dev Inbox" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# web_custom_steps.rb | |
module ClassMatcher | |
def contains_class(css_class) | |
"contains(concat(' ',normalize-space(@class),' '),' #{css_class} ')" | |
end | |
end | |
World(ClassMatcher) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctrl+b | |
page up | |
ctrl+f | |
page down | |
gg or 1G | |
top of file | |
G (shift+g) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show | |
render :template => "ui/#{params[:id]}", :layout => false and return if params[:id] == "poll_step_2" | |
render :template => "ui/#{params[:id]}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "\n\n ${1:Variable}: #{${1}} \n\n" |