Thunderbird/Support/GetSatisfaction/MetricsCode: Difference between revisions
< Thunderbird | Support | GetSatisfaction
Jump to navigation
Jump to search
No edit summary |
|||
Line 12: | Line 12: | ||
* Two programs | * Two programs | ||
*# gather metrics for a given week | *# gather metrics for a given week | ||
*# gather top 10 support issues for a given week | *# gather top 10 support issues for a given week based on tags and/or unique ids |
Revision as of 05:03, 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:
- Two programs
- gather metrics for a given week
- gather top 10 support issues for a given week based on tags and/or unique ids