messenger_client 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: 8d88fe123f1849121c7648507e7609f370f00be3
4
+ data.tar.gz: 87cb3c7f6c730f40ea42a8d74b8f7fb6d5b42124
5
+ SHA512:
6
+ metadata.gz: 95003a3729846d4301e7c3f899209e37d98c591c0409d87459c026ce14b9fbde88182a96d3256e742e206d18575f9048506647a2dcb5c2a5f225454819b3ba1e
7
+ data.tar.gz: 1dfbe0db59111d64d0cd788541d1a508af4ac8b79fc493e4c693fecd7b5cb03525a6782c8f40d1b4081301ce2f61075ec3a0c78058aa3335bbccf384ce6c20ef
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.13.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at aaron@aaroncruz.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in messenger_client.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Aaron Cruz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # MessengerClient
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/messenger_client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'messenger_client'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install messenger_client
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/messenger_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "messenger_client"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ module MessengerClient
2
+ class Button
3
+ def initialize(text, data)
4
+ @text = text
5
+ @data = data
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,27 @@
1
+ module MessengerClient
2
+ class ButtonTemplate
3
+ def initialize(text, buttons)
4
+ @text = text
5
+ @buttons = parse_buttons(buttons)
6
+ end
7
+
8
+ def to_json
9
+ {
10
+ attachment: {
11
+ type: "template",
12
+ payload: {
13
+ template_type: "button",
14
+ text: @text,
15
+ buttons: @buttons
16
+ }
17
+ }
18
+ }
19
+ end
20
+
21
+ private
22
+
23
+ def parse_buttons(buttons)
24
+ buttons.map(&:to_json)
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,14 @@
1
+ require File.expand_path("../button", __FILE__)
2
+
3
+ module MessengerClient
4
+ class CallButton < Button
5
+ def to_json
6
+ {
7
+ type: "phone_number",
8
+ title: @text,
9
+ payload: @data
10
+ }
11
+ end
12
+ end
13
+ end
14
+
@@ -0,0 +1,105 @@
1
+ module MessengerClient
2
+ class Client
3
+ URL_TEMPLATE = "https://graph.facebook.com/v2.6/me/messages?access_token=%s"
4
+
5
+ def initialize(page_access_token)
6
+ @page_access_token = page_access_token
7
+ end
8
+
9
+ def setup_menu(buttons)
10
+ menu = Menu.new(buttons)
11
+ post(menu.to_json)
12
+ end
13
+
14
+ def get_started(postback="get_started")
15
+ gs = GetStarted.new(postback)
16
+ post(gs.to_json)
17
+ end
18
+
19
+ def text(recipient_id:, text:)
20
+ send(recipient_id, text: text)
21
+ end
22
+
23
+ def qr(recipient_id:, text:, replies:)
24
+ qr_template = QuickReplies.new(text, replies)
25
+ send(recipient_id, qr_template.to_json)
26
+ end
27
+
28
+ def button_template(recipient_id:, text:, buttons:)
29
+ template = ButtonTemplate.new(text, buttons)
30
+ send(recipient_id, template.to_json)
31
+ end
32
+
33
+ def image(recipient_id:, url:)
34
+ media = URLImage.new(url)
35
+ send(recipient_id, media.to_json)
36
+ end
37
+
38
+ def video(recipient_id:, url:)
39
+ media = URLVideo.new(url)
40
+ send(recipient_id, media.to_json)
41
+ end
42
+
43
+ def audio(recipient_id:, url:)
44
+ media = URLAudio.new(url)
45
+ send(recipient_id, media.to_json)
46
+ end
47
+
48
+ def file(recipient_id:, url:)
49
+ media = URLFile.new(url)
50
+ send(recipient_id, media.to_json)
51
+ end
52
+
53
+ def youtube_video(recipient_id:, url:)
54
+ text(recipient_id: recipient_id, text: url)
55
+ end
56
+
57
+ def location(recipient_id:)
58
+ loc = MessengerClient::LocationTemplate.new
59
+ send(recipient_id, loc.to_json)
60
+ end
61
+
62
+ def typing(recipient_id:, seconds:, &blk)
63
+ send(recipient_id, nil, sender_action: "typing_on", mark_seen: "true")
64
+ if seconds > 0
65
+ sleep(seconds)
66
+ if block_given?
67
+ blk.call
68
+ end
69
+ end
70
+ end
71
+
72
+ def generic_template(recipient_id:, template:)
73
+ end
74
+
75
+ private
76
+
77
+ def send(recipient_id, data, opts={})
78
+ payload = {
79
+ recipient: {
80
+ id: recipient_id
81
+ }
82
+ }
83
+ payload.merge!(message: data) unless data.nil?
84
+ payload.merge!(opts)
85
+ Typhoeus.post(url, body: json(payload), headers: headers)
86
+ end
87
+
88
+ def post(payload)
89
+ Typhoeus.post(url, body: json(payload), headers: headers)
90
+ end
91
+
92
+ def url
93
+ URL_TEMPLATE % @page_access_token
94
+ end
95
+
96
+ def json(payload)
97
+ JSON.dump(payload)
98
+ end
99
+
100
+ def headers
101
+ { 'Accept-Encoding' => 'application/json',
102
+ 'Content-Type' => 'application/json' }
103
+ end
104
+ end
105
+ end
File without changes
@@ -0,0 +1,19 @@
1
+ module MessengerClient
2
+ class GetStarted
3
+ def initialize(postback="get_started")
4
+ @postback = postback
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ setting_type: "call_to_actions",
10
+ thread_state: "new_thread",
11
+ call_to_actions: [
12
+ {
13
+ payload: @postback
14
+ }
15
+ ]
16
+ }
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ module MessengerClient
2
+ class LocationTemplate
3
+ def initialize(text)
4
+ @text = text
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ text: @text,
10
+ quick_replies: {
11
+ content_type: "location"
12
+ }
13
+ }
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ module MessengerClient
2
+ class LoginButton
3
+ def initialize(url)
4
+ @url = url
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ type: "account_link",
10
+ url: @url
11
+ }
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,13 @@
1
+ module MessengerClient
2
+ class LogoutButton
3
+ def initialize
4
+ end
5
+
6
+ def to_json
7
+ {
8
+ type: "account_unlink"
9
+ }
10
+ end
11
+ end
12
+ end
13
+
@@ -0,0 +1,24 @@
1
+ module MessengerClient
2
+ class Menu
3
+ def initialize(buttons)
4
+ @text = text
5
+ @buttons = parse_buttons(buttons)
6
+ end
7
+
8
+ def to_json
9
+ {
10
+ setting_type: "call_to_actions",
11
+ thread_state: "existing_thread",
12
+ call_to_actions: parse_buttons(@buttons)
13
+ }
14
+ end
15
+
16
+ private
17
+
18
+ def parse_buttons(buttons)
19
+ buttons.map(&:to_json)
20
+ end
21
+ end
22
+ end
23
+
24
+
File without changes
@@ -0,0 +1,14 @@
1
+ require File.expand_path("../button", __FILE__)
2
+
3
+ module MessengerClient
4
+ class PayloadButton < Button
5
+ def to_json
6
+ {
7
+ type: "postback",
8
+ title: @text,
9
+ payload: @data
10
+ }
11
+ end
12
+ end
13
+ end
14
+
@@ -0,0 +1,22 @@
1
+ module MessengerClient
2
+ class QuickReplies
3
+ def initialize(text, quick_replies)
4
+ @text = text
5
+ @quick_replies = parse_qrs(quick_replies)
6
+ end
7
+
8
+ def to_json
9
+ {
10
+ text: @text,
11
+ quick_replies: @quick_replies
12
+ }
13
+ end
14
+
15
+ private
16
+
17
+ def parse_qrs(quick_replies)
18
+ quick_replies.map(&:to_json)
19
+ end
20
+ end
21
+ end
22
+
@@ -0,0 +1,19 @@
1
+ module MessengerClient
2
+ class QuickReply
3
+ def initialize(text, payload=nil, image_url=nil)
4
+ @text = text
5
+ @payload = payload
6
+ @image_url = image_url
7
+ end
8
+
9
+ def to_json
10
+ json = {
11
+ content_type: "text",
12
+ title: @text
13
+ }
14
+ json.merge!(payload: @payload) unless @payload.nil?
15
+ json.merge!(image_url: @image_url) unless @image_url.nil?
16
+ json
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,13 @@
1
+ module MessengerClient
2
+ class ShareButton
3
+ def initialize
4
+ end
5
+
6
+ def to_json
7
+ {
8
+ type: "element_share"
9
+ }
10
+ end
11
+ end
12
+ end
13
+
@@ -0,0 +1,18 @@
1
+ module MessengerClient
2
+ class URLAudio
3
+ def initialize(url)
4
+ @url = url
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ attachment: {
10
+ type: "audio",
11
+ payload: {
12
+ url: @url
13
+ }
14
+ }
15
+ }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ require File.expand_path("../button", __FILE__)
2
+
3
+ module MessengerClient
4
+ class URLButton < Button
5
+ def to_json
6
+ {
7
+ type: "web_url",
8
+ title: @text,
9
+ url: @data
10
+ }
11
+ end
12
+ end
13
+ end
14
+
@@ -0,0 +1,18 @@
1
+ module MessengerClient
2
+ class URLFile
3
+ def initialize(url)
4
+ @url = url
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ attachment: {
10
+ type: "file",
11
+ payload: {
12
+ url: @url
13
+ }
14
+ }
15
+ }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module MessengerClient
2
+ class URLImage
3
+ def initialize(url)
4
+ @url = url
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ attachment: {
10
+ type: "image",
11
+ payload: {
12
+ url: @url
13
+ }
14
+ }
15
+ }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module MessengerClient
2
+ class URLVideo
3
+ def initialize(url)
4
+ @url = url
5
+ end
6
+
7
+ def to_json
8
+ {
9
+ attachment: {
10
+ type: "video",
11
+ payload: {
12
+ url: @url
13
+ }
14
+ }
15
+ }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module MessengerClient
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,43 @@
1
+ require "json"
2
+ require "typhoeus"
3
+
4
+ require "messenger_client/version"
5
+
6
+ # Buttons
7
+ require "messenger_client/button"
8
+ require "messenger_client/call_button"
9
+ require "messenger_client/login_button"
10
+ require "messenger_client/logout_button"
11
+ require "messenger_client/payload_button"
12
+ require "messenger_client/share_button"
13
+ require "messenger_client/url_button"
14
+
15
+ # Quick Replies
16
+ require "messenger_client/quick_replies"
17
+ require "messenger_client/quick_reply"
18
+
19
+ # Media
20
+ require "messenger_client/url_audio"
21
+ require "messenger_client/url_file"
22
+ require "messenger_client/url_image"
23
+ require "messenger_client/url_video"
24
+
25
+ # Location
26
+ require "messenger_client/location_template"
27
+
28
+ # Menu
29
+ require "messenger_client/menu_button"
30
+ require "messenger_client/menu"
31
+
32
+ # Get Started
33
+ require "messenger_client/get_started"
34
+
35
+ # Templates
36
+ require "messenger_client/button_template"
37
+ require "messenger_client/generic_template"
38
+
39
+ # Client
40
+ require "messenger_client/client"
41
+
42
+ module MessengerClient
43
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'messenger_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "messenger_client"
8
+ spec.version = MessengerClient::VERSION
9
+ spec.authors = ["Aaron Cruz"]
10
+ spec.email = ["aaron@aaroncruz.com"]
11
+
12
+ spec.summary = %q{A client for the Facebook Messenger platform}
13
+ spec.description = %q{If you are building a bot on the Messenger platform or just trying to connect with your users or friends there, here's a wonderful HTTP client for you!}
14
+ spec.homepage = "https://computercomputer.computer"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ #if spec.respond_to?(:metadata)
20
+ #spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ #else
22
+ #raise "RubyGems 2.0 or newer is required to protect against " \
23
+ #"public gem pushes."
24
+ #end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.13"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "minitest", "~> 5.0"
36
+
37
+ spec.add_dependency "typhoeus", "~> 1.1.0"
38
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: messenger_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Cruz
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: typhoeus
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.0
69
+ description: If you are building a bot on the Messenger platform or just trying to
70
+ connect with your users or friends there, here's a wonderful HTTP client for you!
71
+ email:
72
+ - aaron@aaroncruz.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - lib/messenger_client.rb
87
+ - lib/messenger_client/button.rb
88
+ - lib/messenger_client/button_template.rb
89
+ - lib/messenger_client/call_button.rb
90
+ - lib/messenger_client/client.rb
91
+ - lib/messenger_client/generic_template.rb
92
+ - lib/messenger_client/get_started.rb
93
+ - lib/messenger_client/location_template.rb
94
+ - lib/messenger_client/login_button.rb
95
+ - lib/messenger_client/logout_button.rb
96
+ - lib/messenger_client/menu.rb
97
+ - lib/messenger_client/menu_button.rb
98
+ - lib/messenger_client/payload_button.rb
99
+ - lib/messenger_client/quick_replies.rb
100
+ - lib/messenger_client/quick_reply.rb
101
+ - lib/messenger_client/share_button.rb
102
+ - lib/messenger_client/url_audio.rb
103
+ - lib/messenger_client/url_button.rb
104
+ - lib/messenger_client/url_file.rb
105
+ - lib/messenger_client/url_image.rb
106
+ - lib/messenger_client/url_video.rb
107
+ - lib/messenger_client/version.rb
108
+ - messenger_client.gemspec
109
+ homepage: https://computercomputer.computer
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 2.5.1
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: A client for the Facebook Messenger platform
133
+ test_files: []