Sha256: 96babf9769a04e82c0704647aa0bc0b783c970beeae60aeeb748cef5e3258cfa
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
module Typetalk class Api module Mention def get_mentions(token:nil, from:nil, unread:nil) response = connection.get do |req| req.url "#{endpoint}/mentions" req.params[:access_token] = token || access_token req.params[:from] = from unless from.nil? req.params[:unread] = unread unless unread.nil? end parse_response(response) end def read_mention(mention_id, token:nil) response = connection.put do |req| req.url "#{endpoint}/mentions/#{mention_id}" req.params[:access_token] = token || access_token end parse_response(response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typetalk-0.0.1 | lib/typetalk/api/mention.rb |