module Pushbullet::Permanents

Public Instance Methods

permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil) click to toggle source
# File lib/pushbullet/permanents.rb, line 11
def permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil)
  params = process_cursor(cursor, params: params)

  path = "permanents/#{device_identity}_thread_#{thread_id}"
  authorise_and_send(http_method: :get, path: path, params: params)
end
permanents(device_identity:, params: {}, cursor: nil) click to toggle source

See: stackoverflow.com/questions/38027963/pushbullet-api-thread-id-to-conversation-iden-for-sms

# File lib/pushbullet/permanents.rb, line 4
def permanents(device_identity:, params: {}, cursor: nil)
  params = process_cursor(cursor, params: params)

  path = "permanents/#{device_identity}_threads"
  authorise_and_send(http_method: :get, path: path, params: params)
end