amerine-btexty 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,29 @@
1
- = btexty
1
+ = btexty - API wrapper for the BTexty API
2
2
 
3
3
  btexty is a ruby gem for accessing the http://btexty.com/ API.
4
4
 
5
+ === Installation
6
+
7
+ sudo gem install jnunemaker-httparty --source http://gems.github.com
8
+
9
+
10
+ === Usage
11
+
12
+ require 'btexty'
13
+ require 'pp'
14
+
15
+ btexty = BTexty.new('+15419777188', 12312)
16
+ puts btexty.unread
17
+ btexty.messages.each do |message|
18
+ pp message.content, message.created_on
19
+ end
20
+
21
+ Produces
22
+
23
+ 1
24
+ "Welcome to btexty! Click on the link we just sent you as text message to activate your account."
25
+ "2009-05-11 22:32:43.643042"
26
+
5
27
  == Copyright
6
28
 
7
29
  Copyright (c) 2009 Mark Turner. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{btexty}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mark Turner"]
@@ -23,6 +23,8 @@ Gem::Specification.new do |s|
23
23
  "lib/btexty.rb",
24
24
  "lib/btexty/data.rb",
25
25
  "test/btexty_test.rb",
26
+ "test/fixtures/messages.json",
27
+ "test/fixtures/unread.json",
26
28
  "test/test_helper.rb"
27
29
  ]
28
30
  s.homepage = %q{http://github.com/amerine/btexty}
@@ -0,0 +1,21 @@
1
+ {
2
+ "response":{
3
+ "body":{
4
+ "messages":[{
5
+ "message":{
6
+ "content":"Welcome to btexty! Click on the link we just sent you as text message to activate your account.",
7
+ "thread":"9xknm7nn3icqa3qnqxni0uwaooz6k6uiupbuij7tao38b4ax1o2b57dsx0onphx5",
8
+ "sender":"+18579989143",
9
+ "recipients":"+15419777188",
10
+ "sender_name":"btexty",
11
+ "recipients_names":"me",
12
+ "is_read":false,
13
+ "wall":false,
14
+ "created_on":"2009-05-11 22:32:43.643042",
15
+ "id":"agZtb3dhbGxyIQsSB0FjY291bnQYAgwLEgxTaG9ydE1lc3NhZ2UY_50CDA"}
16
+ }
17
+ ]}
18
+ ,
19
+ "response_code":0,
20
+ "response_message":"Ok"}
21
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "response":{
3
+ "body":{
4
+ "unread":1}
5
+ ,
6
+ "response_code":0,
7
+ "response_message":"Ok"}
8
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amerine-btexty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Turner
@@ -33,6 +33,8 @@ files:
33
33
  - lib/btexty.rb
34
34
  - lib/btexty/data.rb
35
35
  - test/btexty_test.rb
36
+ - test/fixtures/messages.json
37
+ - test/fixtures/unread.json
36
38
  - test/test_helper.rb
37
39
  has_rdoc: false
38
40
  homepage: http://github.com/amerine/btexty