eucalyptus 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f17283339eb29832b6ca29b810539783b67fbca8
4
+ data.tar.gz: 1eb136e165e2182ebe8db581e69b8e2868515ecd
5
+ SHA512:
6
+ metadata.gz: 72390b8cf41162495cd09cf4bdcde01a62e53d283605f40b9d367859311894dab7033d6f5e3169e6eb5c2ed28dbb003ab853a68d10e40fd04a12e705c8241982
7
+ data.tar.gz: d0d7836fc079ddf6f1422e99c8032a213e915ac20da0203aab3f1e18c4430100113de8683c9eb1a1b057c926a12382c7dc3fc187d797322515be686af1693e73
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.env ADDED
@@ -0,0 +1 @@
1
+ ACCESS_TOKEN=CAAT2zroqzZBgBAGZAPGRB4nnNOsOeskFd8wCn82iqgCLjf66ZBY6KsaJ8QL9NoHUGSkagizo2hZAw0hg6BtPiZC1zQUPhbezboBODBJZA1YVYtHbv0ZB5Fx992elxUizs6JzKBf6ZC3nOoE11Ft5wfbgNjfyeAx1W2GqRVWzExhHaaqJNZATrIqKvZBMFWNUJKCeBpgRbEcdaa4t39g4DAiAzG
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec"
10
+ gem "vcr"
11
+ gem "rdoc", "~> 3.12"
12
+ gem "bundler", "~> 1.0"
13
+ gem "jeweler", "~> 2.0.1"
14
+ gem "simplecov", ">= 0"
15
+ gem "pry"
16
+ gem 'dotenv'
17
+ gem 'webmock'
18
+ end
19
+
20
+ gem 'koala'
data/Gemfile.lock ADDED
@@ -0,0 +1,102 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.3.8)
5
+ builder (3.2.2)
6
+ coderay (1.1.0)
7
+ crack (0.4.2)
8
+ safe_yaml (~> 1.0.0)
9
+ descendants_tracker (0.0.4)
10
+ thread_safe (~> 0.3, >= 0.3.1)
11
+ diff-lcs (1.2.5)
12
+ docile (1.1.5)
13
+ dotenv (2.0.1)
14
+ faraday (0.9.1)
15
+ multipart-post (>= 1.2, < 3)
16
+ git (1.2.9.1)
17
+ github_api (0.12.3)
18
+ addressable (~> 2.3)
19
+ descendants_tracker (~> 0.0.4)
20
+ faraday (~> 0.8, < 0.10)
21
+ hashie (>= 3.3)
22
+ multi_json (>= 1.7.5, < 2.0)
23
+ nokogiri (~> 1.6.3)
24
+ oauth2
25
+ hashie (3.4.2)
26
+ highline (1.7.2)
27
+ jeweler (2.0.1)
28
+ builder
29
+ bundler (>= 1.0)
30
+ git (>= 1.2.5)
31
+ github_api
32
+ highline (>= 1.6.15)
33
+ nokogiri (>= 1.5.10)
34
+ rake
35
+ rdoc
36
+ json (1.8.3)
37
+ jwt (1.5.0)
38
+ koala (2.0.0)
39
+ addressable
40
+ faraday
41
+ multi_json
42
+ method_source (0.8.2)
43
+ mini_portile (0.6.2)
44
+ multi_json (1.11.1)
45
+ multi_xml (0.5.5)
46
+ multipart-post (2.0.0)
47
+ nokogiri (1.6.6.2)
48
+ mini_portile (~> 0.6.0)
49
+ oauth2 (1.0.0)
50
+ faraday (>= 0.8, < 0.10)
51
+ jwt (~> 1.0)
52
+ multi_json (~> 1.3)
53
+ multi_xml (~> 0.5)
54
+ rack (~> 1.2)
55
+ pry (0.10.1)
56
+ coderay (~> 1.1.0)
57
+ method_source (~> 0.8.1)
58
+ slop (~> 3.4)
59
+ rack (1.6.1)
60
+ rake (10.4.2)
61
+ rdoc (3.12.2)
62
+ json (~> 1.4)
63
+ rspec (3.3.0)
64
+ rspec-core (~> 3.3.0)
65
+ rspec-expectations (~> 3.3.0)
66
+ rspec-mocks (~> 3.3.0)
67
+ rspec-core (3.3.0)
68
+ rspec-support (~> 3.3.0)
69
+ rspec-expectations (3.3.0)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.3.0)
72
+ rspec-mocks (3.3.0)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.3.0)
75
+ rspec-support (3.3.0)
76
+ safe_yaml (1.0.4)
77
+ simplecov (0.10.0)
78
+ docile (~> 1.1.0)
79
+ json (~> 1.8)
80
+ simplecov-html (~> 0.10.0)
81
+ simplecov-html (0.10.0)
82
+ slop (3.6.0)
83
+ thread_safe (0.3.5)
84
+ vcr (2.9.2)
85
+ webmock (1.18.0)
86
+ addressable (>= 2.3.6)
87
+ crack (>= 0.3.2)
88
+
89
+ PLATFORMS
90
+ ruby
91
+
92
+ DEPENDENCIES
93
+ bundler (~> 1.0)
94
+ dotenv
95
+ jeweler (~> 2.0.1)
96
+ koala
97
+ pry
98
+ rdoc (~> 3.12)
99
+ rspec
100
+ simplecov
101
+ vcr
102
+ webmock
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2015 Oguz Huner
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # eucalyptus
2
+
3
+ An easy interface and abstraction to the Facebook Ads API.
4
+
5
+ ![alt text](http://public.media.smithsonianmag.com/legacy_blog/eucalyptus-gold.jpg "Eucalyptus")
6
+
7
+ ## Installation
8
+
9
+ `gem install eucalyptus`
10
+
11
+ or stick this in your gemfile:
12
+
13
+ `gem 'eucalyptus'`
14
+
15
+ You then need to grab yourself an access token from facebook and initialize Eucalyptus with it:
16
+
17
+ ```
18
+ Eucalyptus.configure do |config|
19
+ config.access_token = YOUR_ACCESS_TOKEN
20
+ end
21
+ ```
22
+
23
+ And you're all set to go!
24
+
25
+ ## Usage
26
+
27
+ ```
28
+ account = Eucalyptus::Account.all.last
29
+ campaign = account.campaigns.first
30
+
31
+ campaign.name
32
+
33
+ account_ads = account.ads
34
+ campaign_ads = campaign.ads
35
+
36
+ stats = campaign.report_stats
37
+ stats.cpa
38
+
39
+ ads = Add.all
40
+
41
+ ads == account_ads
42
+ ```
43
+
44
+ ## Contributing to eucalyptus
45
+
46
+ - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
47
+ - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
48
+ - Fork the project.
49
+ - Start a feature/bugfix branch.
50
+ - Commit and push until you are happy with your contribution.
51
+ - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
52
+
53
+ ## Copyright
54
+
55
+ Copyright (c) 2015 Oguz Huner. See LICENSE.txt for
56
+ further details.
57
+
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
+ gem.name = "eucalyptus"
18
+ gem.homepage = "http://github.com/oguzcanhuner/eucalyptus"
19
+ gem.license = "MIT"
20
+ gem.summary = "An easy interface and abstraction to the Facebook Ads API"
21
+ gem.description = "An easy interface and abstraction to the Facebook Ads API"
22
+ gem.email = "oguzcanhuner@gmail.com"
23
+ gem.authors = ["Oguz Huner"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ desc "Code coverage detail"
35
+ task :simplecov do
36
+ ENV['COVERAGE'] = "true"
37
+ Rake::Task['spec'].execute
38
+ end
39
+
40
+ task :default => :spec
41
+
42
+ require 'rdoc/task'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "eucalyptus #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,94 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: eucalyptus 0.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "eucalyptus"
9
+ s.version = "0.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Oguz Huner"]
14
+ s.date = "2015-06-16"
15
+ s.description = "An easy interface and abstraction to the Facebook Ads API"
16
+ s.email = "oguzcanhuner@gmail.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".env",
24
+ ".rspec",
25
+ "Gemfile",
26
+ "Gemfile.lock",
27
+ "LICENSE.txt",
28
+ "README.md",
29
+ "Rakefile",
30
+ "VERSION",
31
+ "eucalyptus.gemspec",
32
+ "fixtures/vcr_cassettes/account_ad_sets.yml",
33
+ "fixtures/vcr_cassettes/account_ads.yml",
34
+ "fixtures/vcr_cassettes/account_campaigns.yml",
35
+ "fixtures/vcr_cassettes/test2.yml",
36
+ "lib/eucalyptus.rb",
37
+ "lib/eucalyptus/account.rb",
38
+ "lib/eucalyptus/ad.rb",
39
+ "lib/eucalyptus/ad_set.rb",
40
+ "lib/eucalyptus/campaign.rb",
41
+ "lib/eucalyptus/custom_audience.rb",
42
+ "lib/eucalyptus/resource.rb",
43
+ "lib/eucalyptus/response.rb",
44
+ "spec/eucalyptus/account_spec.rb",
45
+ "spec/eucalyptus/custom_audience_spec.rb",
46
+ "spec/eucalyptus/resource_spec.rb",
47
+ "spec/eucalyptus_spec.rb",
48
+ "spec/spec_helper.rb"
49
+ ]
50
+ s.homepage = "http://github.com/oguzcanhuner/eucalyptus"
51
+ s.licenses = ["MIT"]
52
+ s.rubygems_version = "2.4.4"
53
+ s.summary = "An easy interface and abstraction to the Facebook Ads API"
54
+
55
+ if s.respond_to? :specification_version then
56
+ s.specification_version = 4
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_runtime_dependency(%q<koala>, [">= 0"])
60
+ s.add_development_dependency(%q<rspec>, [">= 0"])
61
+ s.add_development_dependency(%q<vcr>, [">= 0"])
62
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
63
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
64
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
65
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
66
+ s.add_development_dependency(%q<pry>, [">= 0"])
67
+ s.add_development_dependency(%q<dotenv>, [">= 0"])
68
+ s.add_development_dependency(%q<webmock>, [">= 0"])
69
+ else
70
+ s.add_dependency(%q<koala>, [">= 0"])
71
+ s.add_dependency(%q<rspec>, [">= 0"])
72
+ s.add_dependency(%q<vcr>, [">= 0"])
73
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
74
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
75
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
76
+ s.add_dependency(%q<simplecov>, [">= 0"])
77
+ s.add_dependency(%q<pry>, [">= 0"])
78
+ s.add_dependency(%q<dotenv>, [">= 0"])
79
+ s.add_dependency(%q<webmock>, [">= 0"])
80
+ end
81
+ else
82
+ s.add_dependency(%q<koala>, [">= 0"])
83
+ s.add_dependency(%q<rspec>, [">= 0"])
84
+ s.add_dependency(%q<vcr>, [">= 0"])
85
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
86
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
87
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
88
+ s.add_dependency(%q<simplecov>, [">= 0"])
89
+ s.add_dependency(%q<pry>, [">= 0"])
90
+ s.add_dependency(%q<dotenv>, [">= 0"])
91
+ s.add_dependency(%q<webmock>, [">= 0"])
92
+ end
93
+ end
94
+
@@ -0,0 +1,256 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://graph.facebook.com/v2.3/act_330410070/adgroups?access_token=<TOKEN>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ X-Fb-Trace-Id:
26
+ - FWsZCOLTzTU
27
+ X-Fb-Rev:
28
+ - '1786490'
29
+ Etag:
30
+ - '"85ebdf05ed9fd10b5695834881f49f597c5265b6"'
31
+ Pragma:
32
+ - no-cache
33
+ Cache-Control:
34
+ - private, no-cache, no-store, must-revalidate
35
+ Facebook-Api-Version:
36
+ - v2.3
37
+ Expires:
38
+ - Sat, 01 Jan 2000 00:00:00 GMT
39
+ Vary:
40
+ - Accept-Encoding
41
+ X-Fb-Debug:
42
+ - axOOU6cWEu5EZG2gv5k4xupgx6bhnXKB3N5fwlYmyaP0c7PpgizOBVF4d3Rzlr0EUV0L27UWFn2NYJVhO5exMw==
43
+ Date:
44
+ - Mon, 15 Jun 2015 18:14:10 GMT
45
+ Connection:
46
+ - keep-alive
47
+ Content-Length:
48
+ - '526'
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"data":[{"id":"6025433555071"},{"id":"6025433765271"},{"id":"6025526303471"},{"id":"6025526321871"},{"id":"6025396551671"},{"id":"6025352670471"},{"id":"6025611509471"},{"id":"6025615327871"},{"id":"6025122270071"},{"id":"6025622524871"},{"id":"6025621391271"},{"id":"6025433764471"},{"id":"6025621319071"},{"id":"6025620897271"},{"id":"6025433769871"},{"id":"6025620875871"},{"id":"6025620341871"},{"id":"6025620304871"},{"id":"6025616608471"},{"id":"6025615296471"},{"id":"6025615366671"},{"id":"6025352667271"},{"id":"6025615366871"},{"id":"6025279133071"},{"id":"6025396552871"}],"paging":{"cursors":{"before":"NjAyNTQzMzU1NTA3MQ==","after":"NjAyNTM5NjU1Mjg3MQ=="},"next":"https:\/\/graph.facebook.com\/v2.3\/act_330410070\/adgroups?access_token=<TOKEN>&limit=25&after=NjAyNTM5NjU1Mjg3MQ\u00253D\u00253D"}}'
52
+ http_version:
53
+ recorded_at: Mon, 15 Jun 2015 18:14:10 GMT
54
+ - request:
55
+ method: get
56
+ uri: https://graph.facebook.com/v2.3/act_330410070/adgroups?access_token=<TOKEN>
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ User-Agent:
62
+ - Faraday v0.9.1
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Access-Control-Allow-Origin:
73
+ - "*"
74
+ Content-Type:
75
+ - application/json; charset=UTF-8
76
+ X-Fb-Trace-Id:
77
+ - Gh0LwN5izqs
78
+ X-Fb-Rev:
79
+ - '1786490'
80
+ Etag:
81
+ - '"85ebdf05ed9fd10b5695834881f49f597c5265b6"'
82
+ Pragma:
83
+ - no-cache
84
+ Cache-Control:
85
+ - private, no-cache, no-store, must-revalidate
86
+ Facebook-Api-Version:
87
+ - v2.3
88
+ Expires:
89
+ - Sat, 01 Jan 2000 00:00:00 GMT
90
+ Vary:
91
+ - Accept-Encoding
92
+ X-Fb-Debug:
93
+ - VwX7+9zV+fWvZ1Tgzv3dBNlcjGOiI94S2232EFDShjnt30QNm0GDgUOwfgi/FrhFw1veuUCWxmORqi6bvg/joQ==
94
+ Date:
95
+ - Mon, 15 Jun 2015 18:14:10 GMT
96
+ Connection:
97
+ - keep-alive
98
+ Content-Length:
99
+ - '526'
100
+ body:
101
+ encoding: UTF-8
102
+ string: '{"data":[{"id":"6025433555071"},{"id":"6025433765271"},{"id":"6025526303471"},{"id":"6025526321871"},{"id":"6025396551671"},{"id":"6025352670471"},{"id":"6025611509471"},{"id":"6025615327871"},{"id":"6025122270071"},{"id":"6025622524871"},{"id":"6025621391271"},{"id":"6025433764471"},{"id":"6025621319071"},{"id":"6025620897271"},{"id":"6025433769871"},{"id":"6025620875871"},{"id":"6025620341871"},{"id":"6025620304871"},{"id":"6025616608471"},{"id":"6025615296471"},{"id":"6025615366671"},{"id":"6025352667271"},{"id":"6025615366871"},{"id":"6025279133071"},{"id":"6025396552871"}],"paging":{"cursors":{"before":"NjAyNTQzMzU1NTA3MQ==","after":"NjAyNTM5NjU1Mjg3MQ=="},"next":"https:\/\/graph.facebook.com\/v2.3\/act_330410070\/adgroups?access_token=<TOKEN>&limit=25&after=NjAyNTM5NjU1Mjg3MQ\u00253D\u00253D"}}'
103
+ http_version:
104
+ recorded_at: Mon, 15 Jun 2015 18:14:10 GMT
105
+ - request:
106
+ method: get
107
+ uri: https://graph.facebook.com/v2.3/me/adaccounts?access_token=<TOKEN>
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ User-Agent:
113
+ - Faraday v0.9.1
114
+ Accept-Encoding:
115
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
116
+ Accept:
117
+ - "*/*"
118
+ response:
119
+ status:
120
+ code: 200
121
+ message: OK
122
+ headers:
123
+ Access-Control-Allow-Origin:
124
+ - "*"
125
+ Content-Type:
126
+ - application/json; charset=UTF-8
127
+ X-Fb-Trace-Id:
128
+ - G0J2sYcKe+M
129
+ X-Fb-Rev:
130
+ - '1786490'
131
+ Etag:
132
+ - '"77dece23ab85d29f77e0ac944b8ea2c599b17702"'
133
+ Pragma:
134
+ - no-cache
135
+ Cache-Control:
136
+ - private, no-cache, no-store, must-revalidate
137
+ Facebook-Api-Version:
138
+ - v2.3
139
+ Expires:
140
+ - Sat, 01 Jan 2000 00:00:00 GMT
141
+ X-Fb-Debug:
142
+ - RqFm4TRqpfy8gFuLpd48PGTmmHodhykG6vJWRTEfnH5WgTnDB/iAm7fgn8/3SbyltRFQ+dAXkc26c+puZgpXLQ==
143
+ Date:
144
+ - Mon, 15 Jun 2015 18:48:49 GMT
145
+ Connection:
146
+ - keep-alive
147
+ Content-Length:
148
+ - '206'
149
+ body:
150
+ encoding: UTF-8
151
+ string: '{"data":[{"account_id":"1387991991504454","id":"act_1387991991504454"},{"account_id":"330410070","id":"act_330410070"}],"paging":{"cursors":{"before":"NjAyMTM3NDcwNTI1OA==","after":"NjAwMzQwNjkyMTA3MQ=="}}}'
152
+ http_version:
153
+ recorded_at: Mon, 15 Jun 2015 18:48:49 GMT
154
+ - request:
155
+ method: get
156
+ uri: https://graph.facebook.com/v2.3/act_330410070/adcampaigns?access_token=<TOKEN>
157
+ body:
158
+ encoding: US-ASCII
159
+ string: ''
160
+ headers:
161
+ User-Agent:
162
+ - Faraday v0.9.1
163
+ Accept-Encoding:
164
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
165
+ Accept:
166
+ - "*/*"
167
+ response:
168
+ status:
169
+ code: 200
170
+ message: OK
171
+ headers:
172
+ Access-Control-Allow-Origin:
173
+ - "*"
174
+ Content-Type:
175
+ - application/json; charset=UTF-8
176
+ X-Fb-Trace-Id:
177
+ - ELk2ZTgtb/J
178
+ X-Fb-Rev:
179
+ - '1786490'
180
+ Etag:
181
+ - '"0e0408881ee5d45bab702aa1292f48f905cb115a"'
182
+ Pragma:
183
+ - no-cache
184
+ Cache-Control:
185
+ - private, no-cache, no-store, must-revalidate
186
+ Facebook-Api-Version:
187
+ - v2.3
188
+ Expires:
189
+ - Sat, 01 Jan 2000 00:00:00 GMT
190
+ Vary:
191
+ - Accept-Encoding
192
+ X-Fb-Debug:
193
+ - Dbkj8FjqGgrq/Syf2NuVI+TJSk2FJOiKtwCB1dV1QKuinwZVW+B9q7VGUuqNuLPkXl+W0TCBRCzqnHtkp6s4WA==
194
+ Date:
195
+ - Mon, 15 Jun 2015 18:48:49 GMT
196
+ Connection:
197
+ - keep-alive
198
+ Content-Length:
199
+ - '512'
200
+ body:
201
+ encoding: UTF-8
202
+ string: '{"data":[{"id":"6025615363471"},{"id":"6025611632071"},{"id":"6025611506471"},{"id":"6025526299671"},{"id":"6025526299071"},{"id":"6025526298871"},{"id":"6025526297671"},{"id":"6025526297471"},{"id":"6025525809671"},{"id":"6025525469471"},{"id":"6025525468671"},{"id":"6025525363871"},{"id":"6025525363271"},{"id":"6025433762071"},{"id":"6025433551271"},{"id":"6025396549671"},{"id":"6025352638471"},{"id":"6025097905471"},{"id":"6025097905271"},{"id":"6025097904871"},{"id":"6025097903671"},{"id":"6025097902271"},{"id":"6025097902071"},{"id":"6025097901871"},{"id":"6025097901471"}],"paging":{"cursors":{"before":"NjAyNTYxNTM2MzQ3MQ==","after":"NjAyNTA5NzkwMTQ3MQ=="},"next":"https:\/\/graph.facebook.com\/v2.3\/act_330410070\/adcampaigns?access_token=<TOKEN>&limit=25&after=NjAyNTA5NzkwMTQ3MQ\u00253D\u00253D"}}'
203
+ http_version:
204
+ recorded_at: Mon, 15 Jun 2015 18:48:50 GMT
205
+ - request:
206
+ method: get
207
+ uri: https://graph.facebook.com/v2.3/act_330410070/adcampaigns?access_token=<TOKEN>
208
+ body:
209
+ encoding: US-ASCII
210
+ string: ''
211
+ headers:
212
+ User-Agent:
213
+ - Faraday v0.9.1
214
+ Accept-Encoding:
215
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
216
+ Accept:
217
+ - "*/*"
218
+ response:
219
+ status:
220
+ code: 200
221
+ message: OK
222
+ headers:
223
+ Access-Control-Allow-Origin:
224
+ - "*"
225
+ Content-Type:
226
+ - application/json; charset=UTF-8
227
+ X-Fb-Trace-Id:
228
+ - FyBPipdG1xi
229
+ X-Fb-Rev:
230
+ - '1786490'
231
+ Etag:
232
+ - '"0e0408881ee5d45bab702aa1292f48f905cb115a"'
233
+ Pragma:
234
+ - no-cache
235
+ Cache-Control:
236
+ - private, no-cache, no-store, must-revalidate
237
+ Facebook-Api-Version:
238
+ - v2.3
239
+ Expires:
240
+ - Sat, 01 Jan 2000 00:00:00 GMT
241
+ Vary:
242
+ - Accept-Encoding
243
+ X-Fb-Debug:
244
+ - 3wBTeYVjNb/E89JUUt+GNft6zmLt8o2EpNY4ljvMZk2WbCAI5yhejphL2naE+NGOOw1VbBK06oxr83VVKsuzOw==
245
+ Date:
246
+ - Mon, 15 Jun 2015 18:48:50 GMT
247
+ Connection:
248
+ - keep-alive
249
+ Content-Length:
250
+ - '512'
251
+ body:
252
+ encoding: UTF-8
253
+ string: '{"data":[{"id":"6025615363471"},{"id":"6025611632071"},{"id":"6025611506471"},{"id":"6025526299671"},{"id":"6025526299071"},{"id":"6025526298871"},{"id":"6025526297671"},{"id":"6025526297471"},{"id":"6025525809671"},{"id":"6025525469471"},{"id":"6025525468671"},{"id":"6025525363871"},{"id":"6025525363271"},{"id":"6025433762071"},{"id":"6025433551271"},{"id":"6025396549671"},{"id":"6025352638471"},{"id":"6025097905471"},{"id":"6025097905271"},{"id":"6025097904871"},{"id":"6025097903671"},{"id":"6025097902271"},{"id":"6025097902071"},{"id":"6025097901871"},{"id":"6025097901471"}],"paging":{"cursors":{"before":"NjAyNTYxNTM2MzQ3MQ==","after":"NjAyNTA5NzkwMTQ3MQ=="},"next":"https:\/\/graph.facebook.com\/v2.3\/act_330410070\/adcampaigns?access_token=<TOKEN>&limit=25&after=NjAyNTA5NzkwMTQ3MQ\u00253D\u00253D"}}'
254
+ http_version:
255
+ recorded_at: Mon, 15 Jun 2015 18:48:50 GMT
256
+ recorded_with: VCR 2.9.2