Sha256: 9eff89f09345e261a341daae891454202b9e0bab5b8b564fbefd187728c41f3c
Contents?: true
Size: 741 Bytes
Versions: 2
Compression:
Stored size: 741 Bytes
Contents
module Bobot module Profile include Bobot::GraphFacebook def set(body:, query: nil) query ||= { access_token: Bobot.page_access_token } query[:access_token] = Bobot.page_access_token unless query.key?("access_token") graph_post '/me/messenger_profile', body: body, query: { access_token: query.fetch(:access_token), } end module_function :set def unset(body:, query: nil) query ||= { access_token: Bobot.page_access_token } query[:access_token] = Bobot.page_access_token unless query.key?("access_token") graph_delete '/me/messenger_profile', body: body, query: { access_token: query.fetch(:access_token), } end module_function :unset end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bobot-1.0.53 | lib/bobot/profile.rb |
bobot-1.0.52 | lib/bobot/profile.rb |