fuelsdk 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = []
11
11
  spec.description = %q{Fuel SDK for Ruby}
12
12
  spec.summary = %q{Fuel SDK for Ruby}
13
- spec.homepage = "https://code.exacttarget.com/sdks"
13
+ spec.homepage = "https://github.com/barberj/FuelSDK-Ruby"
14
14
  spec.license = ""
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -30,3 +30,4 @@ ET_Subscriber = FuelSDK::Subscriber
30
30
  ET_UnsubEvent = FuelSDK::UnsubEvent
31
31
  ET_TriggeredSend = FuelSDK::TriggeredSend
32
32
  ET_Campaign = FuelSDK::Campaign
33
+ ET_Get = FuelSDK::Get
@@ -364,4 +364,28 @@ module FuelSDK
364
364
  end
365
365
  end
366
366
  end
367
+
368
+ class Get < Objects::Base
369
+ include Objects::Soap::Read
370
+ attr_accessor :id
371
+
372
+ def initialize client, id, properties, filter
373
+ self.properties = properties
374
+ self.filter = filter
375
+ self.client = client
376
+ self.id = id
377
+ end
378
+
379
+ def get
380
+ super id
381
+ end
382
+
383
+ class << self
384
+ def new client, id, properties=nil, filter=nil
385
+ o = self.allocate
386
+ o.send :initialize, client, id, properties, filter
387
+ return o.get
388
+ end
389
+ end
390
+ end
367
391
  end
@@ -1,3 +1,3 @@
1
1
  module FuelSDK
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -0,0 +1,13 @@
1
+ require 'fuelsdk'
2
+ require_relative 'sample_helper' # contains auth with credentials
3
+
4
+ begin
5
+ client = ET_Client.new auth
6
+ get = ET_Get.new client, 'Account'
7
+ p "Results: #{get.results}"
8
+ raise 'Failure getting Account info' unless get.success?
9
+
10
+ rescue => e
11
+ p "Caught exception: #{e.message}"
12
+ p e.backtrace
13
+ end
@@ -1,8 +1,8 @@
1
1
  def auth
2
2
  {
3
3
  'client' => {
4
- 'id' => 'b2atjsvxvr9ae4kh6hk948hu',
5
- 'secret' => 'uAnap7jbfx6KghAxfh895YZ8'
4
+ 'id' => YOURID
5
+ 'secret' => YOURSERET
6
6
  }
7
7
  }
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelsdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-17 00:00:00.000000000 Z
13
+ date: 2013-08-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -170,6 +170,7 @@ files:
170
170
  - samples/sample-dataextension.rb
171
171
  - samples/sample-email.rb
172
172
  - samples/sample-folder.rb
173
+ - samples/sample-get.rb
173
174
  - samples/sample-list.rb
174
175
  - samples/sample-list.subscriber.rb
175
176
  - samples/sample-openevent.rb
@@ -187,7 +188,7 @@ files:
187
188
  - spec/soap_spec.rb
188
189
  - spec/spec_helper.rb
189
190
  - spec/targeting_spec.rb
190
- homepage: https://code.exacttarget.com/sdks
191
+ homepage: https://github.com/barberj/FuelSDK-Ruby
191
192
  licenses:
192
193
  - ''
193
194
  post_install_message:
@@ -222,6 +223,7 @@ test_files:
222
223
  - samples/sample-dataextension.rb
223
224
  - samples/sample-email.rb
224
225
  - samples/sample-folder.rb
226
+ - samples/sample-get.rb
225
227
  - samples/sample-list.rb
226
228
  - samples/sample-list.subscriber.rb
227
229
  - samples/sample-openevent.rb