Thunderbird/Support/GetSatisfaction/MetricsCode: Difference between revisions
< Thunderbird | Support | GetSatisfaction
Jump to navigation
Jump to search
(Created page with '* Couldn't get rubygem from the GS team to work so used raw REST and json interface instead') |
No edit summary |
||
Line 1: | Line 1: | ||
== Raw implementation notes == | |||
will be cleaned up later, this is a WORK IN PROGRESS | |||
* Couldn't get rubygem from the GS team to work so used raw REST and json interface instead | * Couldn't get rubygem from the GS team to work so used raw REST and json interface instead | ||
* http://api.getsatisfaction.com/topics/_exclude_option_to_avoid_sending_to_specific_addresses_within_an_address_list/replies.json - gets list of replies | |||
* http://api.getsatisfaction.com/topics/_exclude_option_to_avoid_sending_to_specific_addresses_within_an_address_list.json - gets me list including ["reply_count"] of 4 | |||
* resp, data = http.get("/companies/mozilla_messaging/topics.json?limit=30&page=1", nil) | |||
* if resp.code = 200 # 200 HTTP OK | |||
* result = JSON.parse(data) | |||
* print result["data"][15]["author"]["name"] | |||
* to get tags: | |||
** http://api.getsatisfaction.com/topics/_exclude_option_to_avoid_sending_to_specific_addresses_within_an_address_list/tags.json?limit=30&page=1 |
Revision as of 04:23, 16 September 2009
Raw implementation notes
will be cleaned up later, this is a WORK IN PROGRESS
- Couldn't get rubygem from the GS team to work so used raw REST and json interface instead
- http://api.getsatisfaction.com/topics/_exclude_option_to_avoid_sending_to_specific_addresses_within_an_address_list/replies.json - gets list of replies
- http://api.getsatisfaction.com/topics/_exclude_option_to_avoid_sending_to_specific_addresses_within_an_address_list.json - gets me list including ["reply_count"] of 4
- resp, data = http.get("/companies/mozilla_messaging/topics.json?limit=30&page=1", nil)
- if resp.code = 200 # 200 HTTP OK
- result = JSON.parse(data)
- print result["data"][15]["author"]["name"]
- to get tags: