example.rb in whatsapp_sdk-0.6.1 vs example.rb in whatsapp_sdk-0.6.2

- old
+ new

@@ -9,26 +9,26 @@ gemfile(true) do source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } - gem "whatsapp_sdk" + gem "whatsapp_sdk", path: "." gem "pry" gem "pry-nav" end require 'whatsapp_sdk' require "pry" require "pry-nav" ################# UPDATE CONSTANTS ################# -ACCESS_TOKEN = "<TODO replace>" -SENDER_ID = "<TODO replace>" -RECIPIENT_NUMBER = "<TODO replace>" -BUSINESS_ID = "<TODO replace>" -IMAGE_LINK = "<TODO replace>" +ACCESS_TOKEN = "EAAZAvvr0DZBs0BAFe8yjwJujpg5JZBX5DvzQ5Mv1oUBxuOefZAmi1TuRTkYmd9AqNqyTt2TtGict94yDWMmxb4fVQ3gZANjIb0IXXptezSad0xTHIZBpCNqZB8SBeBGL0eajPEjP1tZBwY3oyuOMwRU1ZAQuKMFkIV7Sw01AA3nX32plODm7LObsLp04C3aL7Pb1UF6OYKS0vPcqtFl21E9sf" # replace this with a valid access_token # TODO replace +SENDER_ID = 111591145018464 +RECIPIENT_NUMBER = 13_437_772_910 +BUSINESS_ID = 102261539298487 +IMAGE_LINK = "https://ignaciochiazzo.com/static/4c403819b9750c8ad8b20a75308f2a8a/876d5/profile-pic.avif" ################# Initialize Client ################# WhatsappSdk.configure do |config| config.access_token = ACCESS_TOKEN end @@ -44,9 +44,12 @@ ################################################## medias_api = WhatsappSdk::Api::Medias.new messages_api = WhatsappSdk::Api::Messages.new phone_numbers_api = WhatsappSdk::Api::PhoneNumbers.new +business_profile = WhatsappSdk::Api::BusinessProfile.new + +binding.pry ############################## Phone Numbers API ############################## registered_number = phone_numbers_api.registered_number(SENDER_ID) registered_numbers = phone_numbers_api.registered_numbers(BUSINESS_ID) ############################## Media API ##############################