Sha256: 448f6675d5041f239b582e6b7e373d2b1bd780e8ecc64f1fc6e0981656475dfd

Contents?: true

Size: 695 Bytes

Versions: 7

Compression:

Stored size: 695 Bytes

Contents

module Pushbullet
  module Permanents
    # See: https://stackoverflow.com/questions/38027963/pushbullet-api-thread-id-to-conversation-iden-for-sms
    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

    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pushbullet_client-0.0.12 lib/pushbullet/permanents.rb
pushbullet_client-0.0.11 lib/pushbullet/permanents.rb
pushbullet_client-0.0.10 lib/pushbullet/permanents.rb
pushbullet_client-0.0.9 lib/pushbullet/permanents.rb
pushbullet_client-0.0.8 lib/pushbullet/permanents.rb
pushbullet_client-0.0.7 lib/pushbullet/permanents.rb
pushbullet_client-0.0.6 lib/pushbullet/permanents.rb