groupme-api 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +11 -0
- data/.travis.yml +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +151 -0
- data/Guardfile +9 -0
- data/README.md +48 -0
- data/Rakefile +8 -0
- data/groupme-api.gemspec +32 -0
- data/lib/groupme.rb +27 -0
- data/lib/groupme/configuration.rb +7 -0
- data/lib/groupme/group.rb +8 -0
- data/lib/groupme/request.rb +37 -0
- data/lib/groupme/response.rb +21 -0
- data/lib/groupme/version.rb +5 -0
- data/spec/fixtures/groups/index.json +674 -0
- data/spec/fixtures/groups/new.json +43 -0
- data/spec/fixtures/groups/show.json +42 -0
- data/spec/groupme/configuration_spec.rb +27 -0
- data/spec/groupme/group_spec.rb +6 -0
- data/spec/groupme/request_spec.rb +130 -0
- data/spec/groupme/response_spec.rb +64 -0
- data/spec/groupme_spec.rb +9 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/support/fake_groupme.rb +28 -0
- metadata +208 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 861ef2c8493c0067708b488a23a0870b0b24df8988a9e19541f5d9974b6dba19
|
4
|
+
data.tar.gz: 5bb6453c707bd00a3e719db747efbeb269609645f85b6916e730bcc61e14f32e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 00bfb098b4c46fdb558cda322f1b686d0cc266c3c8431eaa66f3d94bf01f8ce099c78856a505bd1a2c3ededb6d3dc443412bf5c082b1550fb5d160f58d3c531f
|
7
|
+
data.tar.gz: fe510cefecbc466be710497357c3db3f24f92ee9d784aaf9efcf4a8c6cf7c9e04f8f5a072c2acab3ba4df43e0be1439acc87a7e93363e3095bb5c439c4539fe2
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
groupme-api (0.4.0)
|
5
|
+
http (~> 3.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activesupport (5.2.1)
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
+
i18n (>= 0.7, < 2)
|
13
|
+
minitest (~> 5.1)
|
14
|
+
tzinfo (~> 1.1)
|
15
|
+
addressable (2.5.2)
|
16
|
+
public_suffix (>= 2.0.2, < 4.0)
|
17
|
+
backports (3.11.4)
|
18
|
+
coderay (1.1.2)
|
19
|
+
concurrent-ruby (1.0.5)
|
20
|
+
coveralls (0.8.22)
|
21
|
+
json (>= 1.8, < 3)
|
22
|
+
simplecov (~> 0.16.1)
|
23
|
+
term-ansicolor (~> 1.3)
|
24
|
+
thor (~> 0.19.4)
|
25
|
+
tins (~> 1.6)
|
26
|
+
crack (0.4.3)
|
27
|
+
safe_yaml (~> 1.0.0)
|
28
|
+
diff-lcs (1.3)
|
29
|
+
docile (1.3.1)
|
30
|
+
domain_name (0.5.20180417)
|
31
|
+
unf (>= 0.0.5, < 1.0.0)
|
32
|
+
ffi (1.9.25)
|
33
|
+
formatador (0.2.5)
|
34
|
+
guard (2.14.2)
|
35
|
+
formatador (>= 0.2.4)
|
36
|
+
listen (>= 2.7, < 4.0)
|
37
|
+
lumberjack (>= 1.0.12, < 2.0)
|
38
|
+
nenv (~> 0.1)
|
39
|
+
notiffany (~> 0.0)
|
40
|
+
pry (>= 0.9.12)
|
41
|
+
shellany (~> 0.0)
|
42
|
+
thor (>= 0.18.1)
|
43
|
+
guard-compat (1.2.1)
|
44
|
+
guard-rspec (4.7.3)
|
45
|
+
guard (~> 2.1)
|
46
|
+
guard-compat (~> 1.1)
|
47
|
+
rspec (>= 2.99.0, < 4.0)
|
48
|
+
hashdiff (0.3.7)
|
49
|
+
http (3.3.0)
|
50
|
+
addressable (~> 2.3)
|
51
|
+
http-cookie (~> 1.0)
|
52
|
+
http-form_data (~> 2.0)
|
53
|
+
http_parser.rb (~> 0.6.0)
|
54
|
+
http-cookie (1.0.3)
|
55
|
+
domain_name (~> 0.5)
|
56
|
+
http-form_data (2.1.1)
|
57
|
+
http_parser.rb (0.6.0)
|
58
|
+
i18n (1.1.0)
|
59
|
+
concurrent-ruby (~> 1.0)
|
60
|
+
json (2.1.0)
|
61
|
+
listen (3.1.5)
|
62
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
63
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
64
|
+
ruby_dep (~> 1.2)
|
65
|
+
lumberjack (1.0.13)
|
66
|
+
method_source (0.9.0)
|
67
|
+
minitest (5.11.3)
|
68
|
+
multi_json (1.13.1)
|
69
|
+
mustermann (1.0.3)
|
70
|
+
nenv (0.3.0)
|
71
|
+
notiffany (0.1.1)
|
72
|
+
nenv (~> 0.1)
|
73
|
+
shellany (~> 0.0)
|
74
|
+
pry (0.11.3)
|
75
|
+
coderay (~> 1.1.0)
|
76
|
+
method_source (~> 0.9.0)
|
77
|
+
public_suffix (3.0.3)
|
78
|
+
rack (2.0.5)
|
79
|
+
rack-protection (2.0.3)
|
80
|
+
rack
|
81
|
+
rake (10.5.0)
|
82
|
+
rb-fsevent (0.10.3)
|
83
|
+
rb-inotify (0.9.10)
|
84
|
+
ffi (>= 0.5.0, < 2)
|
85
|
+
rspec (3.8.0)
|
86
|
+
rspec-core (~> 3.8.0)
|
87
|
+
rspec-expectations (~> 3.8.0)
|
88
|
+
rspec-mocks (~> 3.8.0)
|
89
|
+
rspec-core (3.8.0)
|
90
|
+
rspec-support (~> 3.8.0)
|
91
|
+
rspec-expectations (3.8.1)
|
92
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
+
rspec-support (~> 3.8.0)
|
94
|
+
rspec-mocks (3.8.0)
|
95
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
+
rspec-support (~> 3.8.0)
|
97
|
+
rspec-support (3.8.0)
|
98
|
+
ruby_dep (1.5.0)
|
99
|
+
safe_yaml (1.0.4)
|
100
|
+
shellany (0.0.1)
|
101
|
+
simplecov (0.16.1)
|
102
|
+
docile (~> 1.1)
|
103
|
+
json (>= 1.8, < 3)
|
104
|
+
simplecov-html (~> 0.10.0)
|
105
|
+
simplecov-html (0.10.2)
|
106
|
+
sinatra (2.0.3)
|
107
|
+
mustermann (~> 1.0)
|
108
|
+
rack (~> 2.0)
|
109
|
+
rack-protection (= 2.0.3)
|
110
|
+
tilt (~> 2.0)
|
111
|
+
sinatra-contrib (2.0.3)
|
112
|
+
activesupport (>= 4.0.0)
|
113
|
+
backports (>= 2.8.2)
|
114
|
+
multi_json
|
115
|
+
mustermann (~> 1.0)
|
116
|
+
rack-protection (= 2.0.3)
|
117
|
+
sinatra (= 2.0.3)
|
118
|
+
tilt (>= 1.3, < 3)
|
119
|
+
term-ansicolor (1.6.0)
|
120
|
+
tins (~> 1.0)
|
121
|
+
thor (0.19.4)
|
122
|
+
thread_safe (0.3.6)
|
123
|
+
tilt (2.0.8)
|
124
|
+
tins (1.16.3)
|
125
|
+
tzinfo (1.2.5)
|
126
|
+
thread_safe (~> 0.1)
|
127
|
+
unf (0.1.4)
|
128
|
+
unf_ext
|
129
|
+
unf_ext (0.0.7.5)
|
130
|
+
webmock (3.4.2)
|
131
|
+
addressable (>= 2.3.6)
|
132
|
+
crack (>= 0.3.2)
|
133
|
+
hashdiff
|
134
|
+
|
135
|
+
PLATFORMS
|
136
|
+
ruby
|
137
|
+
|
138
|
+
DEPENDENCIES
|
139
|
+
bundler (~> 1.16)
|
140
|
+
coveralls (~> 0.8)
|
141
|
+
groupme-api!
|
142
|
+
guard-rspec (~> 4.7)
|
143
|
+
rake (~> 10.0)
|
144
|
+
rspec (~> 3.8)
|
145
|
+
simplecov (~> 0.15)
|
146
|
+
sinatra (~> 2.0)
|
147
|
+
sinatra-contrib (~> 2.0)
|
148
|
+
webmock (~> 3.4)
|
149
|
+
|
150
|
+
BUNDLED WITH
|
151
|
+
1.16.3
|
data/Guardfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
guard :rspec, cmd: 'rspec' do
|
4
|
+
watch(%r{^spec/.+_spec\.rb$})
|
5
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
6
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
7
|
+
watch(%r{^spec/fixtures/(.+)\.json$}) { 'spec' }
|
8
|
+
watch(%r{^spec/support/(.+)$}) { 'spec' }
|
9
|
+
end
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# GroupMe Ruby Gem (WIP)
|
2
|
+
[![Build Status](https://travis-ci.org/kinnell/groupme-ruby-gem.svg?branch=master)](https://travis-ci.org/kinnell/groupme-ruby-gem)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/kinnell/groupme-ruby-gem/badge.svg?branch=master)](https://coveralls.io/github/kinnell/groupme-ruby-gem?branch=master)
|
4
|
+
|
5
|
+
A Ruby wrapper for [GroupMe REST API (v3)](https://dev.groupme.com/docs/v3).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'groupme-api'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install groupme-api
|
22
|
+
|
23
|
+
## Configuration
|
24
|
+
|
25
|
+
Get a developer access token at: https://dev.groupme.com/
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
GroupMe.configure do |config|
|
29
|
+
config.access_token = 'ax7snqkoRiJ0yGPsbKSgeBnBEtqeSkALMC2qJPrT'
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
#### Get All Groups
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
response = GroupMe::Request.new(:get, 'groups').send
|
39
|
+
puts response.body
|
40
|
+
```
|
41
|
+
|
42
|
+
|
43
|
+
#### Create A Group
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
response = GroupMe::Request.new(:post, 'groups', name: 'Test Group').send
|
47
|
+
puts response.body
|
48
|
+
```
|
data/Rakefile
ADDED
data/groupme-api.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'groupme/version'
|
7
|
+
|
8
|
+
Gem::Specification.new do |spec|
|
9
|
+
spec.platform = Gem::Platform::RUBY
|
10
|
+
spec.name = 'groupme-api'
|
11
|
+
spec.version = GroupMe::VERSION
|
12
|
+
spec.summary = 'A Ruby wrapper for GroupMe REST API (v3)'
|
13
|
+
|
14
|
+
spec.author = 'Kinnell Shah'
|
15
|
+
spec.email = 'kinnell@gmail.com'
|
16
|
+
spec.homepage = 'https://github.com/kinnell/groupme-ruby-gem'
|
17
|
+
|
18
|
+
spec.files = `git ls-files`.split("\n")
|
19
|
+
spec.require_path = 'lib'
|
20
|
+
|
21
|
+
spec.add_dependency 'http', '~> 3.0'
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
24
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
25
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
28
|
+
spec.add_development_dependency 'simplecov', '~> 0.15'
|
29
|
+
spec.add_development_dependency 'sinatra', '~> 2.0'
|
30
|
+
spec.add_development_dependency 'sinatra-contrib', '~> 2.0'
|
31
|
+
spec.add_development_dependency 'webmock', '~> 3.4'
|
32
|
+
end
|
data/lib/groupme.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'http'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
require 'groupme/configuration'
|
7
|
+
require 'groupme/group'
|
8
|
+
require 'groupme/response'
|
9
|
+
require 'groupme/request'
|
10
|
+
require 'groupme/version'
|
11
|
+
|
12
|
+
module GroupMe
|
13
|
+
class << self
|
14
|
+
def configuration
|
15
|
+
@configuration ||= Configuration.new
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.configure
|
20
|
+
self.configuration ||= Configuration.new
|
21
|
+
yield(configuration)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.reset!
|
25
|
+
@configuration = Configuration.new
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module GroupMe
|
4
|
+
class Request
|
5
|
+
API_BASE_URI = 'https://api.groupme.com/v3'
|
6
|
+
ACCEPTABLE_METHODS = %i[get post delete].freeze
|
7
|
+
|
8
|
+
attr_reader :method, :path, :opts
|
9
|
+
|
10
|
+
def initialize(method = :get, path = '', opts = {})
|
11
|
+
raise UnacceptableRequestMethodError unless ACCEPTABLE_METHODS.include?(method)
|
12
|
+
|
13
|
+
@method = method
|
14
|
+
@path = path
|
15
|
+
@opts = opts
|
16
|
+
end
|
17
|
+
|
18
|
+
def send
|
19
|
+
response = HTTP.request(@method, full_uri, params: full_opts)
|
20
|
+
Response.new(response)
|
21
|
+
end
|
22
|
+
|
23
|
+
def full_uri
|
24
|
+
"#{API_BASE_URI}/#{@path}"
|
25
|
+
end
|
26
|
+
|
27
|
+
def full_opts
|
28
|
+
{ token: token }.merge(@opts)
|
29
|
+
end
|
30
|
+
|
31
|
+
def token
|
32
|
+
@token = @opts[:token] || GroupMe.configuration.access_token
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class UnacceptableRequestMethodError < StandardError; end
|
37
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module GroupMe
|
4
|
+
class Response
|
5
|
+
def initialize(response)
|
6
|
+
@response = response
|
7
|
+
end
|
8
|
+
|
9
|
+
def raw
|
10
|
+
@response
|
11
|
+
end
|
12
|
+
|
13
|
+
def code
|
14
|
+
@response.code
|
15
|
+
end
|
16
|
+
|
17
|
+
def body
|
18
|
+
JSON.parse(@response.body, symbolize_names: true).fetch(:response)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,674 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "44835935",
|
4
|
+
"group_id": "44835935",
|
5
|
+
"name": "Gaming Group",
|
6
|
+
"phone_number": "+1 3363554142",
|
7
|
+
"type": "private",
|
8
|
+
"description": "",
|
9
|
+
"image_url": null,
|
10
|
+
"creator_user_id": "3193012",
|
11
|
+
"created_at": 1538722180,
|
12
|
+
"updated_at": 1538722180,
|
13
|
+
"office_mode": false,
|
14
|
+
"share_url": null,
|
15
|
+
"share_qr_code_url": null,
|
16
|
+
"members": [
|
17
|
+
{
|
18
|
+
"user_id": "3193012",
|
19
|
+
"nickname": "Test Account",
|
20
|
+
"image_url": null,
|
21
|
+
"id": "384076097",
|
22
|
+
"muted": false,
|
23
|
+
"autokicked": false,
|
24
|
+
"roles": [
|
25
|
+
"admin",
|
26
|
+
"owner"
|
27
|
+
],
|
28
|
+
"name": "Test Account"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"messages": {
|
32
|
+
"count": 0,
|
33
|
+
"last_message_id": "",
|
34
|
+
"last_message_created_at": 0,
|
35
|
+
"preview": {
|
36
|
+
"nickname": null,
|
37
|
+
"text": null,
|
38
|
+
"image_url": null,
|
39
|
+
"attachments": []
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"max_members": 500
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"id": "44835934",
|
46
|
+
"group_id": "44835934",
|
47
|
+
"name": "MCU Discussion Group",
|
48
|
+
"phone_number": "+1 5307275175",
|
49
|
+
"type": "private",
|
50
|
+
"description": "",
|
51
|
+
"image_url": null,
|
52
|
+
"creator_user_id": "3193012",
|
53
|
+
"created_at": 1538722180,
|
54
|
+
"updated_at": 1538722180,
|
55
|
+
"office_mode": false,
|
56
|
+
"share_url": null,
|
57
|
+
"share_qr_code_url": null,
|
58
|
+
"members": [
|
59
|
+
{
|
60
|
+
"user_id": "3193012",
|
61
|
+
"nickname": "Test Account",
|
62
|
+
"image_url": null,
|
63
|
+
"id": "384076096",
|
64
|
+
"muted": false,
|
65
|
+
"autokicked": false,
|
66
|
+
"roles": [
|
67
|
+
"admin",
|
68
|
+
"owner"
|
69
|
+
],
|
70
|
+
"name": "Test Account"
|
71
|
+
}
|
72
|
+
],
|
73
|
+
"messages": {
|
74
|
+
"count": 0,
|
75
|
+
"last_message_id": "",
|
76
|
+
"last_message_created_at": 0,
|
77
|
+
"preview": {
|
78
|
+
"nickname": null,
|
79
|
+
"text": null,
|
80
|
+
"image_url": null,
|
81
|
+
"attachments": []
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"max_members": 500
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"id": "44835933",
|
88
|
+
"group_id": "44835933",
|
89
|
+
"name": "Game of Thrones Discussion Group",
|
90
|
+
"phone_number": "+1 3163134571",
|
91
|
+
"type": "private",
|
92
|
+
"description": "",
|
93
|
+
"image_url": null,
|
94
|
+
"creator_user_id": "3193012",
|
95
|
+
"created_at": 1538722180,
|
96
|
+
"updated_at": 1538722180,
|
97
|
+
"office_mode": false,
|
98
|
+
"share_url": null,
|
99
|
+
"share_qr_code_url": null,
|
100
|
+
"members": [
|
101
|
+
{
|
102
|
+
"user_id": "3193012",
|
103
|
+
"nickname": "Test Account",
|
104
|
+
"image_url": null,
|
105
|
+
"id": "384076095",
|
106
|
+
"muted": false,
|
107
|
+
"autokicked": false,
|
108
|
+
"roles": [
|
109
|
+
"admin",
|
110
|
+
"owner"
|
111
|
+
],
|
112
|
+
"name": "Test Account"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"messages": {
|
116
|
+
"count": 0,
|
117
|
+
"last_message_id": "",
|
118
|
+
"last_message_created_at": 0,
|
119
|
+
"preview": {
|
120
|
+
"nickname": null,
|
121
|
+
"text": null,
|
122
|
+
"image_url": null,
|
123
|
+
"attachments": []
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"max_members": 500
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"id": "44835932",
|
130
|
+
"group_id": "44835932",
|
131
|
+
"name": "Investing Friends",
|
132
|
+
"phone_number": "+1 8189004848",
|
133
|
+
"type": "private",
|
134
|
+
"description": "",
|
135
|
+
"image_url": null,
|
136
|
+
"creator_user_id": "3193012",
|
137
|
+
"created_at": 1538722180,
|
138
|
+
"updated_at": 1538722180,
|
139
|
+
"office_mode": false,
|
140
|
+
"share_url": null,
|
141
|
+
"share_qr_code_url": null,
|
142
|
+
"members": [
|
143
|
+
{
|
144
|
+
"user_id": "3193012",
|
145
|
+
"nickname": "Test Account",
|
146
|
+
"image_url": null,
|
147
|
+
"id": "384076094",
|
148
|
+
"muted": false,
|
149
|
+
"autokicked": false,
|
150
|
+
"roles": [
|
151
|
+
"admin",
|
152
|
+
"owner"
|
153
|
+
],
|
154
|
+
"name": "Test Account"
|
155
|
+
}
|
156
|
+
],
|
157
|
+
"messages": {
|
158
|
+
"count": 0,
|
159
|
+
"last_message_id": "",
|
160
|
+
"last_message_created_at": 0,
|
161
|
+
"preview": {
|
162
|
+
"nickname": null,
|
163
|
+
"text": null,
|
164
|
+
"image_url": null,
|
165
|
+
"attachments": []
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"max_members": 500
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"id": "44835928",
|
172
|
+
"group_id": "44835928",
|
173
|
+
"name": "Old Work Friends",
|
174
|
+
"phone_number": "+1 3479791179",
|
175
|
+
"type": "private",
|
176
|
+
"description": "",
|
177
|
+
"image_url": null,
|
178
|
+
"creator_user_id": "3193012",
|
179
|
+
"created_at": 1538722107,
|
180
|
+
"updated_at": 1538722107,
|
181
|
+
"office_mode": false,
|
182
|
+
"share_url": null,
|
183
|
+
"share_qr_code_url": null,
|
184
|
+
"members": [
|
185
|
+
{
|
186
|
+
"user_id": "3193012",
|
187
|
+
"nickname": "Test Account",
|
188
|
+
"image_url": null,
|
189
|
+
"id": "384076023",
|
190
|
+
"muted": false,
|
191
|
+
"autokicked": false,
|
192
|
+
"roles": [
|
193
|
+
"admin",
|
194
|
+
"owner"
|
195
|
+
],
|
196
|
+
"name": "Test Account"
|
197
|
+
}
|
198
|
+
],
|
199
|
+
"messages": {
|
200
|
+
"count": 0,
|
201
|
+
"last_message_id": "",
|
202
|
+
"last_message_created_at": 0,
|
203
|
+
"preview": {
|
204
|
+
"nickname": null,
|
205
|
+
"text": null,
|
206
|
+
"image_url": null,
|
207
|
+
"attachments": []
|
208
|
+
}
|
209
|
+
},
|
210
|
+
"max_members": 500
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"id": "44835927",
|
214
|
+
"group_id": "44835927",
|
215
|
+
"name": "Co-Workers",
|
216
|
+
"phone_number": "+1 6097362013",
|
217
|
+
"type": "private",
|
218
|
+
"description": "",
|
219
|
+
"image_url": null,
|
220
|
+
"creator_user_id": "3193012",
|
221
|
+
"created_at": 1538722106,
|
222
|
+
"updated_at": 1538722106,
|
223
|
+
"office_mode": false,
|
224
|
+
"share_url": null,
|
225
|
+
"share_qr_code_url": null,
|
226
|
+
"members": [
|
227
|
+
{
|
228
|
+
"user_id": "3193012",
|
229
|
+
"nickname": "Test Account",
|
230
|
+
"image_url": null,
|
231
|
+
"id": "384076022",
|
232
|
+
"muted": false,
|
233
|
+
"autokicked": false,
|
234
|
+
"roles": [
|
235
|
+
"admin",
|
236
|
+
"owner"
|
237
|
+
],
|
238
|
+
"name": "Test Account"
|
239
|
+
}
|
240
|
+
],
|
241
|
+
"messages": {
|
242
|
+
"count": 0,
|
243
|
+
"last_message_id": "",
|
244
|
+
"last_message_created_at": 0,
|
245
|
+
"preview": {
|
246
|
+
"nickname": null,
|
247
|
+
"text": null,
|
248
|
+
"image_url": null,
|
249
|
+
"attachments": []
|
250
|
+
}
|
251
|
+
},
|
252
|
+
"max_members": 500
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"id": "44835926",
|
256
|
+
"group_id": "44835926",
|
257
|
+
"name": "Vacation Trip Planning",
|
258
|
+
"phone_number": "+1 6787458749",
|
259
|
+
"type": "private",
|
260
|
+
"description": "",
|
261
|
+
"image_url": null,
|
262
|
+
"creator_user_id": "3193012",
|
263
|
+
"created_at": 1538722106,
|
264
|
+
"updated_at": 1538722106,
|
265
|
+
"office_mode": false,
|
266
|
+
"share_url": null,
|
267
|
+
"share_qr_code_url": null,
|
268
|
+
"members": [
|
269
|
+
{
|
270
|
+
"user_id": "3193012",
|
271
|
+
"nickname": "Test Account",
|
272
|
+
"image_url": null,
|
273
|
+
"id": "384076021",
|
274
|
+
"muted": false,
|
275
|
+
"autokicked": false,
|
276
|
+
"roles": [
|
277
|
+
"admin",
|
278
|
+
"owner"
|
279
|
+
],
|
280
|
+
"name": "Test Account"
|
281
|
+
}
|
282
|
+
],
|
283
|
+
"messages": {
|
284
|
+
"count": 0,
|
285
|
+
"last_message_id": "",
|
286
|
+
"last_message_created_at": 0,
|
287
|
+
"preview": {
|
288
|
+
"nickname": null,
|
289
|
+
"text": null,
|
290
|
+
"image_url": null,
|
291
|
+
"attachments": []
|
292
|
+
}
|
293
|
+
},
|
294
|
+
"max_members": 500
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"id": "44835925",
|
298
|
+
"group_id": "44835925",
|
299
|
+
"name": "Siblings",
|
300
|
+
"phone_number": "+1 2406000247",
|
301
|
+
"type": "private",
|
302
|
+
"description": "",
|
303
|
+
"image_url": null,
|
304
|
+
"creator_user_id": "3193012",
|
305
|
+
"created_at": 1538722106,
|
306
|
+
"updated_at": 1538722106,
|
307
|
+
"office_mode": false,
|
308
|
+
"share_url": null,
|
309
|
+
"share_qr_code_url": null,
|
310
|
+
"members": [
|
311
|
+
{
|
312
|
+
"user_id": "3193012",
|
313
|
+
"nickname": "Test Account",
|
314
|
+
"image_url": null,
|
315
|
+
"id": "384076020",
|
316
|
+
"muted": false,
|
317
|
+
"autokicked": false,
|
318
|
+
"roles": [
|
319
|
+
"admin",
|
320
|
+
"owner"
|
321
|
+
],
|
322
|
+
"name": "Test Account"
|
323
|
+
}
|
324
|
+
],
|
325
|
+
"messages": {
|
326
|
+
"count": 0,
|
327
|
+
"last_message_id": "",
|
328
|
+
"last_message_created_at": 0,
|
329
|
+
"preview": {
|
330
|
+
"nickname": null,
|
331
|
+
"text": null,
|
332
|
+
"image_url": null,
|
333
|
+
"attachments": []
|
334
|
+
}
|
335
|
+
},
|
336
|
+
"max_members": 500
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"id": "44835924",
|
340
|
+
"group_id": "44835924",
|
341
|
+
"name": "Extended Family",
|
342
|
+
"phone_number": "+1 6624506524",
|
343
|
+
"type": "private",
|
344
|
+
"description": "",
|
345
|
+
"image_url": null,
|
346
|
+
"creator_user_id": "3193012",
|
347
|
+
"created_at": 1538722106,
|
348
|
+
"updated_at": 1538722106,
|
349
|
+
"office_mode": false,
|
350
|
+
"share_url": null,
|
351
|
+
"share_qr_code_url": null,
|
352
|
+
"members": [
|
353
|
+
{
|
354
|
+
"user_id": "3193012",
|
355
|
+
"nickname": "Test Account",
|
356
|
+
"image_url": null,
|
357
|
+
"id": "384076019",
|
358
|
+
"muted": false,
|
359
|
+
"autokicked": false,
|
360
|
+
"roles": [
|
361
|
+
"admin",
|
362
|
+
"owner"
|
363
|
+
],
|
364
|
+
"name": "Test Account"
|
365
|
+
}
|
366
|
+
],
|
367
|
+
"messages": {
|
368
|
+
"count": 0,
|
369
|
+
"last_message_id": "",
|
370
|
+
"last_message_created_at": 0,
|
371
|
+
"preview": {
|
372
|
+
"nickname": null,
|
373
|
+
"text": null,
|
374
|
+
"image_url": null,
|
375
|
+
"attachments": []
|
376
|
+
}
|
377
|
+
},
|
378
|
+
"max_members": 500
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"id": "44835923",
|
382
|
+
"group_id": "44835923",
|
383
|
+
"name": "Family",
|
384
|
+
"phone_number": "+1 6789207432",
|
385
|
+
"type": "private",
|
386
|
+
"description": "",
|
387
|
+
"image_url": null,
|
388
|
+
"creator_user_id": "3193012",
|
389
|
+
"created_at": 1538722106,
|
390
|
+
"updated_at": 1538722106,
|
391
|
+
"office_mode": false,
|
392
|
+
"share_url": null,
|
393
|
+
"share_qr_code_url": null,
|
394
|
+
"members": [
|
395
|
+
{
|
396
|
+
"user_id": "3193012",
|
397
|
+
"nickname": "Test Account",
|
398
|
+
"image_url": null,
|
399
|
+
"id": "384076018",
|
400
|
+
"muted": false,
|
401
|
+
"autokicked": false,
|
402
|
+
"roles": [
|
403
|
+
"admin",
|
404
|
+
"owner"
|
405
|
+
],
|
406
|
+
"name": "Test Account"
|
407
|
+
}
|
408
|
+
],
|
409
|
+
"messages": {
|
410
|
+
"count": 0,
|
411
|
+
"last_message_id": "",
|
412
|
+
"last_message_created_at": 0,
|
413
|
+
"preview": {
|
414
|
+
"nickname": null,
|
415
|
+
"text": null,
|
416
|
+
"image_url": null,
|
417
|
+
"attachments": []
|
418
|
+
}
|
419
|
+
},
|
420
|
+
"max_members": 500
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"id": "44835922",
|
424
|
+
"group_id": "44835922",
|
425
|
+
"name": "Ski Team",
|
426
|
+
"phone_number": "+1 5617679511",
|
427
|
+
"type": "private",
|
428
|
+
"description": "",
|
429
|
+
"image_url": null,
|
430
|
+
"creator_user_id": "3193012",
|
431
|
+
"created_at": 1538722106,
|
432
|
+
"updated_at": 1538722106,
|
433
|
+
"office_mode": false,
|
434
|
+
"share_url": null,
|
435
|
+
"share_qr_code_url": null,
|
436
|
+
"members": [
|
437
|
+
{
|
438
|
+
"user_id": "3193012",
|
439
|
+
"nickname": "Test Account",
|
440
|
+
"image_url": null,
|
441
|
+
"id": "384076017",
|
442
|
+
"muted": false,
|
443
|
+
"autokicked": false,
|
444
|
+
"roles": [
|
445
|
+
"admin",
|
446
|
+
"owner"
|
447
|
+
],
|
448
|
+
"name": "Test Account"
|
449
|
+
}
|
450
|
+
],
|
451
|
+
"messages": {
|
452
|
+
"count": 0,
|
453
|
+
"last_message_id": "",
|
454
|
+
"last_message_created_at": 0,
|
455
|
+
"preview": {
|
456
|
+
"nickname": null,
|
457
|
+
"text": null,
|
458
|
+
"image_url": null,
|
459
|
+
"attachments": []
|
460
|
+
}
|
461
|
+
},
|
462
|
+
"max_members": 500
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"id": "44835921",
|
466
|
+
"group_id": "44835921",
|
467
|
+
"name": "Dance Team",
|
468
|
+
"phone_number": "+1 3142005157",
|
469
|
+
"type": "private",
|
470
|
+
"description": "",
|
471
|
+
"image_url": null,
|
472
|
+
"creator_user_id": "3193012",
|
473
|
+
"created_at": 1538722106,
|
474
|
+
"updated_at": 1538722106,
|
475
|
+
"office_mode": false,
|
476
|
+
"share_url": null,
|
477
|
+
"share_qr_code_url": null,
|
478
|
+
"members": [
|
479
|
+
{
|
480
|
+
"user_id": "3193012",
|
481
|
+
"nickname": "Test Account",
|
482
|
+
"image_url": null,
|
483
|
+
"id": "384076015",
|
484
|
+
"muted": false,
|
485
|
+
"autokicked": false,
|
486
|
+
"roles": [
|
487
|
+
"admin",
|
488
|
+
"owner"
|
489
|
+
],
|
490
|
+
"name": "Test Account"
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"messages": {
|
494
|
+
"count": 0,
|
495
|
+
"last_message_id": "",
|
496
|
+
"last_message_created_at": 0,
|
497
|
+
"preview": {
|
498
|
+
"nickname": null,
|
499
|
+
"text": null,
|
500
|
+
"image_url": null,
|
501
|
+
"attachments": []
|
502
|
+
}
|
503
|
+
},
|
504
|
+
"max_members": 500
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"id": "44835920",
|
508
|
+
"group_id": "44835920",
|
509
|
+
"name": "College Friends",
|
510
|
+
"phone_number": "+1 8593635201",
|
511
|
+
"type": "private",
|
512
|
+
"description": "",
|
513
|
+
"image_url": null,
|
514
|
+
"creator_user_id": "3193012",
|
515
|
+
"created_at": 1538722105,
|
516
|
+
"updated_at": 1538722105,
|
517
|
+
"office_mode": false,
|
518
|
+
"share_url": null,
|
519
|
+
"share_qr_code_url": null,
|
520
|
+
"members": [
|
521
|
+
{
|
522
|
+
"user_id": "3193012",
|
523
|
+
"nickname": "Test Account",
|
524
|
+
"image_url": null,
|
525
|
+
"id": "384076014",
|
526
|
+
"muted": false,
|
527
|
+
"autokicked": false,
|
528
|
+
"roles": [
|
529
|
+
"admin",
|
530
|
+
"owner"
|
531
|
+
],
|
532
|
+
"name": "Test Account"
|
533
|
+
}
|
534
|
+
],
|
535
|
+
"messages": {
|
536
|
+
"count": 0,
|
537
|
+
"last_message_id": "",
|
538
|
+
"last_message_created_at": 0,
|
539
|
+
"preview": {
|
540
|
+
"nickname": null,
|
541
|
+
"text": null,
|
542
|
+
"image_url": null,
|
543
|
+
"attachments": []
|
544
|
+
}
|
545
|
+
},
|
546
|
+
"max_members": 500
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"id": "44835902",
|
550
|
+
"group_id": "44835902",
|
551
|
+
"name": "High School Friends",
|
552
|
+
"phone_number": "+1 6193780416",
|
553
|
+
"type": "private",
|
554
|
+
"description": "",
|
555
|
+
"image_url": null,
|
556
|
+
"creator_user_id": "3193012",
|
557
|
+
"created_at": 1538721837,
|
558
|
+
"updated_at": 1538721967,
|
559
|
+
"office_mode": false,
|
560
|
+
"share_url": null,
|
561
|
+
"share_qr_code_url": null,
|
562
|
+
"members": [
|
563
|
+
{
|
564
|
+
"user_id": "3193012",
|
565
|
+
"nickname": "Test Account",
|
566
|
+
"image_url": null,
|
567
|
+
"id": "384075821",
|
568
|
+
"muted": false,
|
569
|
+
"autokicked": false,
|
570
|
+
"roles": [
|
571
|
+
"admin",
|
572
|
+
"owner"
|
573
|
+
],
|
574
|
+
"name": "Test Account"
|
575
|
+
}
|
576
|
+
],
|
577
|
+
"messages": {
|
578
|
+
"count": 1,
|
579
|
+
"last_message_id": "153872196794737967",
|
580
|
+
"last_message_created_at": 0,
|
581
|
+
"preview": {
|
582
|
+
"nickname": null,
|
583
|
+
"text": null,
|
584
|
+
"image_url": null,
|
585
|
+
"attachments": []
|
586
|
+
}
|
587
|
+
},
|
588
|
+
"max_members": 500
|
589
|
+
},
|
590
|
+
{
|
591
|
+
"id": "44656909",
|
592
|
+
"group_id": "44656909",
|
593
|
+
"name": "Middle School Friends",
|
594
|
+
"phone_number": "+1 6466993313",
|
595
|
+
"type": "private",
|
596
|
+
"description": "",
|
597
|
+
"image_url": null,
|
598
|
+
"creator_user_id": "3193012",
|
599
|
+
"created_at": 1538345615,
|
600
|
+
"updated_at": 1538721948,
|
601
|
+
"office_mode": false,
|
602
|
+
"share_url": null,
|
603
|
+
"share_qr_code_url": null,
|
604
|
+
"members": [
|
605
|
+
{
|
606
|
+
"user_id": "3193012",
|
607
|
+
"nickname": "Test Account",
|
608
|
+
"image_url": null,
|
609
|
+
"id": "382143186",
|
610
|
+
"muted": false,
|
611
|
+
"autokicked": false,
|
612
|
+
"roles": [
|
613
|
+
"admin",
|
614
|
+
"owner"
|
615
|
+
],
|
616
|
+
"name": "Test Account"
|
617
|
+
}
|
618
|
+
],
|
619
|
+
"messages": {
|
620
|
+
"count": 1,
|
621
|
+
"last_message_id": "153872194802356734",
|
622
|
+
"last_message_created_at": 0,
|
623
|
+
"preview": {
|
624
|
+
"nickname": null,
|
625
|
+
"text": null,
|
626
|
+
"image_url": null,
|
627
|
+
"attachments": []
|
628
|
+
}
|
629
|
+
},
|
630
|
+
"max_members": 500
|
631
|
+
},
|
632
|
+
{
|
633
|
+
"id": "44009567",
|
634
|
+
"group_id": "44009567",
|
635
|
+
"name": "Elementary School Friends",
|
636
|
+
"phone_number": "+1 2253699141",
|
637
|
+
"type": "private",
|
638
|
+
"description": "",
|
639
|
+
"image_url": null,
|
640
|
+
"creator_user_id": "3193012",
|
641
|
+
"created_at": 1536824233,
|
642
|
+
"updated_at": 1538721957,
|
643
|
+
"office_mode": false,
|
644
|
+
"share_url": null,
|
645
|
+
"share_qr_code_url": null,
|
646
|
+
"members": [
|
647
|
+
{
|
648
|
+
"user_id": "3193012",
|
649
|
+
"nickname": "Test Account",
|
650
|
+
"image_url": null,
|
651
|
+
"id": "375093397",
|
652
|
+
"muted": false,
|
653
|
+
"autokicked": false,
|
654
|
+
"roles": [
|
655
|
+
"admin",
|
656
|
+
"owner"
|
657
|
+
],
|
658
|
+
"name": "Test Account"
|
659
|
+
}
|
660
|
+
],
|
661
|
+
"messages": {
|
662
|
+
"count": 2,
|
663
|
+
"last_message_id": "153872195719533320",
|
664
|
+
"last_message_created_at": 0,
|
665
|
+
"preview": {
|
666
|
+
"nickname": null,
|
667
|
+
"text": null,
|
668
|
+
"image_url": null,
|
669
|
+
"attachments": []
|
670
|
+
}
|
671
|
+
},
|
672
|
+
"max_members": 500
|
673
|
+
}
|
674
|
+
]
|