aweber 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/Gemfile +9 -0
  2. data/Gemfile.lock +28 -0
  3. data/LICENSE +20 -0
  4. data/README.textile +45 -0
  5. data/Rakefile +9 -0
  6. data/aweber.gemspec +55 -0
  7. data/examples/with_access_token.rb +17 -0
  8. data/examples/your_account.rb +26 -0
  9. data/lib/aweber.rb +67 -0
  10. data/lib/aweber/base.rb +49 -0
  11. data/lib/aweber/collection.rb +110 -0
  12. data/lib/aweber/oauth.rb +69 -0
  13. data/lib/aweber/resource.rb +93 -0
  14. data/lib/aweber/resources.rb +14 -0
  15. data/lib/aweber/resources/account.rb +14 -0
  16. data/lib/aweber/resources/broadcast.rb +29 -0
  17. data/lib/aweber/resources/click.rb +13 -0
  18. data/lib/aweber/resources/followup.rb +24 -0
  19. data/lib/aweber/resources/integration.rb +8 -0
  20. data/lib/aweber/resources/link.rb +12 -0
  21. data/lib/aweber/resources/list.rb +86 -0
  22. data/lib/aweber/resources/message.rb +20 -0
  23. data/lib/aweber/resources/open.rb +10 -0
  24. data/lib/aweber/resources/subscriber.rb +26 -0
  25. data/lib/aweber/resources/tracked_event.rb +13 -0
  26. data/lib/aweber/resources/web_form.rb +14 -0
  27. data/lib/aweber/resources/web_form_split_test.rb +11 -0
  28. data/lib/aweber/resources/web_form_split_test_component.rb +20 -0
  29. data/spec/base_spec.rb +23 -0
  30. data/spec/collection_spec.rb +40 -0
  31. data/spec/fixtures/account.json +8 -0
  32. data/spec/fixtures/accounts.json +13 -0
  33. data/spec/fixtures/campaign.json +23 -0
  34. data/spec/fixtures/campaigns.json +106 -0
  35. data/spec/fixtures/click.json +9 -0
  36. data/spec/fixtures/clicks.json +14 -0
  37. data/spec/fixtures/integration.json +8 -0
  38. data/spec/fixtures/integrations.json +45 -0
  39. data/spec/fixtures/link.json +10 -0
  40. data/spec/fixtures/links.json +75 -0
  41. data/spec/fixtures/list.json +11 -0
  42. data/spec/fixtures/lists.json +38 -0
  43. data/spec/fixtures/message.json +12 -0
  44. data/spec/fixtures/messages.json +29 -0
  45. data/spec/fixtures/open.json +8 -0
  46. data/spec/fixtures/opens.json +21 -0
  47. data/spec/fixtures/subscriber.json +16 -0
  48. data/spec/fixtures/subscribers.json +69 -0
  49. data/spec/fixtures/tracked_event.json +8 -0
  50. data/spec/fixtures/tracked_events.json +21 -0
  51. data/spec/fixtures/web_form.json +14 -0
  52. data/spec/fixtures/web_form_split_test.json +9 -0
  53. data/spec/fixtures/web_form_split_test_component.json +16 -0
  54. data/spec/fixtures/web_form_split_test_components.json +37 -0
  55. data/spec/fixtures/web_form_split_tests.json +41 -0
  56. data/spec/fixtures/web_forms.json +229 -0
  57. data/spec/oauth_spec.rb +96 -0
  58. data/spec/resource_spec.rb +61 -0
  59. data/spec/resources/account_spec.rb +13 -0
  60. data/spec/resources/campaign_spec.rb +14 -0
  61. data/spec/resources/click_spec.rb +14 -0
  62. data/spec/resources/integration_spec.rb +13 -0
  63. data/spec/resources/link_spec.rb +15 -0
  64. data/spec/resources/list_spec.rb +26 -0
  65. data/spec/resources/message_spec.rb +17 -0
  66. data/spec/resources/open_spec.rb +13 -0
  67. data/spec/resources/subscriber_spec.rb +25 -0
  68. data/spec/resources/tracked_event_spec.rb +14 -0
  69. data/spec/resources/web_form_spec.rb +19 -0
  70. data/spec/resources/web_form_split_test_component_spec.rb +20 -0
  71. data/spec/resources/web_form_split_test_spec.rb +14 -0
  72. data/spec/spec_helper.rb +52 -0
  73. metadata +247 -0
@@ -0,0 +1,14 @@
1
+ module AWeber
2
+ module Resources
3
+ class WebForm < Resource
4
+ attr_reader :conversion_percentage
5
+ attr_reader :is_active
6
+ attr_reader :name
7
+ attr_reader :total_displays
8
+ attr_reader :total_submissions
9
+ attr_reader :total_unique_displays
10
+ attr_reader :type
11
+ attr_reader :unique_conversion_percentage
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ module AWeber
2
+ module Resources
3
+ class WebFormSplitTest < Resource
4
+ attr_reader :components_collection_link
5
+ attr_reader :is_active
6
+ attr_reader :name
7
+
8
+ has_many :components
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,20 @@
1
+ module AWeber
2
+ module Resources
3
+ class WebFormSplitTestComponent < Resource
4
+ attr_reader :conversion_percentage
5
+ attr_reader :is_active
6
+ attr_reader :name
7
+ attr_reader :total_displays
8
+ attr_reader :total_submissions
9
+ attr_reader :total_unique_displays
10
+ attr_reader :type
11
+ attr_reader :unique_conversion_percentage
12
+ attr_reader :web_form_link
13
+ attr_reader :weight
14
+
15
+ has_one :web_form
16
+
17
+ alias_attribute :is_active?, :is_active
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,23 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe AWeber::Base do
4
+ before :each do
5
+ @oauth = AWeber::OAuth.new("token", "secret")
6
+ @aweber = AWeber::Base.new(@oauth)
7
+ end
8
+
9
+ it "should have an account" do
10
+ @aweber.account.should be_an AWeber::Resources::Account
11
+ end
12
+
13
+ it "should expand uris to full paths" do
14
+ resp = @oauth.get("https://api.aweber.com/1.0/accounts")
15
+ @oauth.should_receive(:get).with("https://api.aweber.com/1.0/accounts").and_return(resp)
16
+ @aweber.account
17
+ end
18
+
19
+ it "should delegate to the oauth object" do
20
+ @oauth.should_receive(:get).with("https://api.aweber.com/1.0/foo")
21
+ @aweber.send(:get, "/foo")
22
+ end
23
+ end
@@ -0,0 +1,40 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe AWeber::Collection do
4
+
5
+ before :each do
6
+ @oauth = AWeber::OAuth.new("token", "secret")
7
+ @aweber = AWeber::Base.new(@oauth)
8
+ data = JSON.parse(fixture("lists.json"))
9
+ @lists = AWeber::Collection.new(@aweber, AWeber::Resources::List, data)
10
+ end
11
+
12
+ it "should create classes from the one passed into initialize" do
13
+ @lists[1].should be_an AWeber::Resources::List
14
+ end
15
+
16
+ it "should be iterable" do
17
+ @lists.should respond_to :each
18
+ @lists.map { |id, l| id }.should be_an Array
19
+ end
20
+
21
+ it "should be accessible via id in normal Hash form" do
22
+ @lists[1].id.should == 1
23
+ end
24
+
25
+ it "should retrieve more resources, if needed, when being iterated over" do
26
+ list_ids = @lists.map{ |id, list| list }
27
+ list_ids.length.should == 3
28
+ list_ids.all? { |e| e.is_a? AWeber::Resources::List }.should == true
29
+ end
30
+
31
+ it "should return single entries with dynamic find_by methods" do
32
+ @lists.find_by_id(1).should be_an AWeber::Resources::List
33
+ @lists.find_by_id(1).id.should == 1
34
+ end
35
+
36
+ it "should return Hashes of entries when find_by methods match many" do
37
+ lists = @lists.find_by_resource_type_link("https://api.aweber.com/1.0/#list")
38
+ lists.length.should == 3
39
+ end
40
+ end
@@ -0,0 +1,8 @@
1
+ {
2
+ "http_etag": "\"356a192b7913b04c54574d18c28d46e6395428ab-ca5feee2b7fbb6febfca8af5541541ea960aaedb\"",
3
+ "lists_collection_link": "https://api.aweber.com/1.0/accounts/1/lists",
4
+ "self_link": "https://api.aweber.com/1.0/accounts/1",
5
+ "resource_type_link": "https://api.aweber.com/1.0/#account",
6
+ "id": 1,
7
+ "integrations_collection_link": "https://api.aweber.com/1.0/accounts/1/integrations"
8
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "total_size": 1,
3
+ "start": 0,
4
+ "resource_type_link": "https://api.aweber.com/1.0/#accounts",
5
+ "entries": [{
6
+ "http_etag": "\"356a192b7913b04c54574d18c28d46e6395428ab-ca5feee2b7fbb6febfca8af5541541ea960aaedb\"",
7
+ "lists_collection_link": "https://api.aweber.com/1.0/accounts/1/lists",
8
+ "self_link": "https://api.aweber.com/1.0/accounts/1",
9
+ "resource_type_link": "https://api.aweber.com/1.0/#account",
10
+ "id": 1,
11
+ "integrations_collection_link": "https://api.aweber.com/1.0/accounts/1/integrations"
12
+ }]
13
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "click_tracking_enabled": 0,
3
+ "sent_date": null,
4
+ "is_archived": true,
5
+ "spam_assassin_score": null,
6
+ "http_etag": "\"14a1a033beff462b137a8222f595af4622875d44-ccadae5b53f02d3db0cc83ca57ae75ac804b2b98\"",
7
+ "total_undeliverable": null,
8
+ "twitter_account_link": null,
9
+ "total_opens": 0,
10
+ "links_collection_link": "http://api.apitest.lab/1.0/accounts/1/lists/1/campaigns/b2/links",
11
+ "total_clicks": 0,
12
+ "published_to_archive": null,
13
+ "messages_collection_link": "http://api.apitest.lab/1.0/accounts/1/lists/1/campaigns/b2/messages",
14
+ "send_date": "2010-22-12T22:15:00-07:00",
15
+ "content_type": "HTML",
16
+ "total_sent": 0,
17
+ "self_link": "http://api.apitest.lab/1.0/accounts/1/lists/1/campaigns/b2",
18
+ "subject": "Something about stuff.",
19
+ "resource_type_link": "http://api.apitest.lab/1.0/#broadcast_campaign",
20
+ "id": 2,
21
+ "total_unsubscribes": 0,
22
+ "total_spam_complaints": null
23
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "total_size": 5,
3
+ "start": 0,
4
+ "next_collection_link": "http://api.aweber.com/1.0/accounts/1/lists/1/campaigns?ws.start=100&ws.size=100",
5
+ "resource_type_link": "https://api.aweber.com/1.0/#campaign-page-resource",
6
+ "entries": [{
7
+ "click_tracking_enabled": true,
8
+ "total_spam_complaints": 0,
9
+ "total_opens": 0,
10
+ "spam_assassin_score": 2.8999999999999999,
11
+ "total_sent": 13,
12
+ "message_interval": 0,
13
+ "links_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1/campaigns/f4125891/links",
14
+ "total_clicks": 0,
15
+ "id": 50000047,
16
+ "http_etag": "\"5b89a250c79f444d5d8b0a33333569cb7ba5bf12-e3f601ab748eb9ac953ad5fe426f204f460b721e\"",
17
+ "messages_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1/campaigns/f4125891/messages",
18
+ "content_type": "Text",
19
+ "total_unsubscribes": 0,
20
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/1/campaigns/f4125891",
21
+ "total_undelivered": null,
22
+ "resource_type_link": "https://api.aweber.com/1.0/#followup_campaign",
23
+ "message_number": 1,
24
+ "subject": "subject"
25
+ },
26
+ {
27
+ "click_tracking_enabled": true,
28
+ "total_spam_complaints": 0,
29
+ "total_opens": 1,
30
+ "spam_assassin_score": 2.2999999999999998,
31
+ "total_sent": 41,
32
+ "message_interval": 1,
33
+ "links_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967848/links",
34
+ "total_clicks": 0,
35
+ "id": 1967848,
36
+ "http_etag": "\"783551829f8c707d634ffdc642c4d27a98fd40f2-731c9d0c70ef77f5919d7ad4ec7a26b1c53eef50\"",
37
+ "messages_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967848/messages",
38
+ "content_type": "Text/HTML",
39
+ "total_unsubscribes": 0,
40
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967848",
41
+ "total_undelivered": null,
42
+ "resource_type_link": "https://api.aweber.com/1.0/#followup_campaign",
43
+ "message_number": 2,
44
+ "subject": "{!firstname_fix}, Followup Test #5"
45
+ },
46
+ {
47
+ "click_tracking_enabled": true,
48
+ "total_spam_complaints": 0,
49
+ "total_opens": 319,
50
+ "spam_assassin_score": 8.1999999999999993,
51
+ "total_sent": 71,
52
+ "message_interval": 0,
53
+ "links_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f664656/links",
54
+ "total_clicks": 526,
55
+ "id": 664656,
56
+ "http_etag": "\"c98b377b2455745c2c2e54b7540dcabbea5b119d-90db636542d1250b74d31c9eee656f44a9ace3e0\"",
57
+ "messages_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f664656/messages",
58
+ "content_type": "HTML",
59
+ "total_unsubscribes": 0,
60
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f664656",
61
+ "total_undelivered": null,
62
+ "resource_type_link": "https://api.aweber.com/1.0/#followup_campaign",
63
+ "message_number": 3,
64
+ "subject": "{!firstname_fix}, Followup Test #1"
65
+ },
66
+ {
67
+ "click_tracking_enabled": true,
68
+ "total_spam_complaints": 0,
69
+ "total_opens": 0,
70
+ "spam_assassin_score": 6.2000000000000002,
71
+ "total_sent": 54,
72
+ "message_interval": 0,
73
+ "links_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967845/links",
74
+ "total_clicks": 0,
75
+ "id": 1967845,
76
+ "http_etag": "\"e36ea7ee44a4b3df8eeb97168a665592ab90d1e9-8ce8a07752e3f7e39b01b646fa0309a11333b8aa\"",
77
+ "messages_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967845/messages",
78
+ "content_type": "Text",
79
+ "total_unsubscribes": 0,
80
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967845",
81
+ "total_undelivered": null,
82
+ "resource_type_link": "https://api.aweber.com/1.0/#followup_campaign",
83
+ "message_number": 4,
84
+ "subject": "{!firstname_fix}, Followup Test #3"
85
+ },
86
+ {
87
+ "click_tracking_enabled": true,
88
+ "total_spam_complaints": 0,
89
+ "total_opens": 4,
90
+ "spam_assassin_score": 1.3999999999999999,
91
+ "total_sent": 40,
92
+ "message_interval": 0,
93
+ "links_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967847/links",
94
+ "total_clicks": 0,
95
+ "id": 1967847,
96
+ "http_etag": "\"144f7d228d30e9828d502288ade2c949da1efe87-9b3bb8002ba3262d0a9d534446e09b4179dec06b\"",
97
+ "messages_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967847/messages",
98
+ "content_type": "Text/HTML",
99
+ "total_unsubscribes": 1,
100
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/f1967847",
101
+ "total_undelivered": null,
102
+ "resource_type_link": "https://api.aweber.com/1.0/#followup_campaign",
103
+ "message_number": 5,
104
+ "subject": "{!firstname_fix}, Followup Test #4"
105
+ }]
106
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "event_time": "2010-10-14 10:30:18-04:00",
3
+ "is_earliest": true,
4
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-ef8d485378f5a2367bc355fff4e690226c6a4f1d\"",
5
+ "subscriber_link": null,
6
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339/clicks/129530",
7
+ "resource_type_link": "https://api.aweber.com/1.0/#click",
8
+ "id": 129530
9
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "total_size": 1,
3
+ "start": 0,
4
+ "resource_type_link": "https://api.aweber.com/1.0/#click-page-resource",
5
+ "entries": [{
6
+ "event_time": "2010-10-14 10:30:18-04:00",
7
+ "is_earliest": true,
8
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-ef8d485378f5a2367bc355fff4e690226c6a4f1d\"",
9
+ "subscriber_link": null,
10
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339/clicks/129530",
11
+ "resource_type_link": "https://api.aweber.com/1.0/#click",
12
+ "id": 129530
13
+ }]
14
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "service_name": "twitter.com",
3
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-925fb7bb9664ca49d0e5288ff490ffbcc2c60382\"",
4
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/8076",
5
+ "login": "foobarman",
6
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
7
+ "id": 8076
8
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "total_size": 5,
3
+ "start": 0,
4
+ "resource_type_link": "https://api.aweber.com/1.0/#integration-page-resource",
5
+ "entries": [{
6
+ "service_name": "twitter.com",
7
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-925fb7bb9664ca49d0e5288ff490ffbcc2c60382\"",
8
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/8076",
9
+ "login": "gfdasgfdsgdfg",
10
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
11
+ "id": 8076
12
+ },
13
+ {
14
+ "service_name": "twitter",
15
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-731086070ed3c506637854f4f1d1936ca5605bd6\"",
16
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/53404",
17
+ "login": "asdasd",
18
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
19
+ "id": 53404
20
+ },
21
+ {
22
+ "service_name": "facebook",
23
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-2b86e7850e6b64b69a621b513ac56b820d6ff189\"",
24
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/67642",
25
+ "login": "asdasdasd",
26
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
27
+ "id": 67642
28
+ },
29
+ {
30
+ "service_name": "facebook",
31
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-bfbbfcb776c98a0d974cd1cc9db29d7d8bd0121f\"",
32
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/67641",
33
+ "login": "hjkgvfgds",
34
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
35
+ "id": 67641
36
+ },
37
+ {
38
+ "service_name": "facebook",
39
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-c61ee9044fbb1157100957a5f5b7c92d1d62efad\"",
40
+ "self_link": "https://api.aweber.com/1.0/accounts/1/integrations/19870",
41
+ "login": "adshkjashdlas",
42
+ "resource_type_link": "https://api.aweber.com/1.0/#integration",
43
+ "id": 19870
44
+ }]
45
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "total_unique_clicks": 1,
3
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339/clicks",
4
+ "url": "http://www.slashdot.org",
5
+ "total_clicks": 1,
6
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-cccdd5ecf8154208783cc346a6d1a1277915c554\"",
7
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339",
8
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
9
+ "id": 136339
10
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "total_size": 7,
3
+ "start": 0,
4
+ "resource_type_link": "https://api.aweber.com/1.0/#link-page-resource",
5
+ "entries": [{
6
+ "total_unique_clicks": 0,
7
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136340/clicks",
8
+ "url": "http://www.facebook.com",
9
+ "total_clicks": 0,
10
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-4da936abdffce1783e329689bbbe1cbe93c228ed\"",
11
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136340",
12
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
13
+ "id": 136340
14
+ },
15
+ {
16
+ "total_unique_clicks": 1,
17
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339/clicks",
18
+ "url": "http://www.slashdot.org",
19
+ "total_clicks": 1,
20
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-cccdd5ecf8154208783cc346a6d1a1277915c554\"",
21
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136339",
22
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
23
+ "id": 136339
24
+ },
25
+ {
26
+ "total_unique_clicks": 1,
27
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136338/clicks",
28
+ "url": "http://www.google.com",
29
+ "total_clicks": 1,
30
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-ebef59d35b76065b619cfb172b95e2f00f2ebc64\"",
31
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136338",
32
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
33
+ "id": 136338
34
+ },
35
+ {
36
+ "total_unique_clicks": 0,
37
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136337/clicks",
38
+ "url": "http://www.digg.com",
39
+ "total_clicks": 0,
40
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-abbd9d1589c6f18c3f955757036576a47f2bf51c\"",
41
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136337",
42
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
43
+ "id": 136337
44
+ },
45
+ {
46
+ "total_unique_clicks": 0,
47
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136336/clicks",
48
+ "url": "http://www.redhat.com",
49
+ "total_clicks": 0,
50
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-3a81205b8f21776f29b34bbeea2e99a5ef5ca6a3\"",
51
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136336",
52
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
53
+ "id": 136336
54
+ },
55
+ {
56
+ "total_unique_clicks": 1,
57
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136335/clicks",
58
+ "url": "http://www.google.com",
59
+ "total_clicks": 1,
60
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-f355087308415e5c965c6eb99747ec666498bd96\"",
61
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136335",
62
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
63
+ "id": 136335
64
+ },
65
+ {
66
+ "total_unique_clicks": 0,
67
+ "clicks_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136334/clicks",
68
+ "url": "http://www.yahoo.com",
69
+ "total_clicks": 0,
70
+ "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-012b4796ddb206859b20d20e0c7f326b28a3b35e\"",
71
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/406860/campaigns/b8051119/links/136334",
72
+ "resource_type_link": "https://api.aweber.com/1.0/#link",
73
+ "id": 136334
74
+ }]
75
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "campaigns_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1550679/campaigns",
3
+ "name": "default1550679",
4
+ "web_form_split_tests_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1550679/web_form_split_tests",
5
+ "subscribers_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1550679/subscribers",
6
+ "id": 1550679,
7
+ "http_etag": "\"0aaa38a50287df08ccb74c7f13fca8679aab688a-ca5feee2b7fbb6febfca8af5541541ea960aaedb\"",
8
+ "self_link": "https://api.aweber.com/1.0/accounts/1/lists/1550679",
9
+ "resource_type_link": "https://api.aweber.com/1.0/#list",
10
+ "web_forms_collection_link": "https://api.aweber.com/1.0/accounts/1/lists/1550679/web_forms"
11
+ }