example.rb in whatsapp_sdk-0.4.0 vs example.rb in whatsapp_sdk-0.5.0

- 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: "/Users/ignaciochiazzo/src/whatsapp_sdk" gem "pry" gem "pry-nav" end require 'whatsapp_sdk' require "pry" require "pry-nav" ################# UPDATE CONSTANTS ################# +ACCESS_TOKEN = "EAAVRvYO3LQMBANyzA38RmXZA83VGGwYblwZASqrEU50dZBki0vqEsGSlglL2nuyD9XVbX0qxbSQURnzW5jkwvfrz8J0P3XW3CSM1R03n81ZBjd1dLHsYIIPdhF8NjMy8hnwYDzTFLSabpkWlD7LQ7VWQAx5k64XgNv02DFLt2EhgVhib09SmEj6ZBSKZBknasHjaTUcgX0iQZDZD" # replace this with a valid access_token # TODO replace +BUSINESS_ID = 101292429380714 +SENDER_ID = 108129082031154 +RECIPIENT_NUMBER = 5511970395230 -ACCESS_TOKEN = "<TODO replace>" -SENDER_ID = "<TODO replace>" -RECIPIENT_NUMBER = "<TODO replace>" -BUSINESS_ID = "<TODO replace>" -IMAGE_LINK = "<TODO replace>" +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,10 @@ ################################################## medias_api = WhatsappSdk::Api::Medias.new messages_api = WhatsappSdk::Api::Messages.new phone_numbers_api = WhatsappSdk::Api::PhoneNumbers.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 ##############################