Pega and Whatsapp Integration

Image
 Pega and Whatsapp Integration Following the procedure from  Official Whatsapp Cloud API 1. Set up Developer Assets and Platform Access The  WhatsApp Cloud API  and  WhatsApp Business Management API  are part of Meta’s Graph API, so you need to set up a Meta developer account and a Meta developer app. To set that up: Register as a Meta Developer  Enable two-factor authentication for your account  Create a Meta App : Go to  developers.facebook.com  >  My Apps  >  Create App . Select the "Business" type and follow the prompts on your screen. Click the app you want to connect to WhatsApp from the App Dashboard. Click Set up when you locate the "WhatsApp" product by scrolling down. Following that, you will have the choice to choose an existing Business Manager (if you have one) or, if you prefer, have one created for you automatically through the onboarding process (you can customize your business later, if needed). Make...

Zoom Meet Integration With Pega

       Zoom Meet Creation With Pega





Step 1 : Go to Zoom marketplace  https://marketplace.zoom.us/ and sign in to your zoom account


Step 2 : Click on build Develop -> build app


Step 3 : Click Create OAuth App.


Step 4 : Enter your app name and choose the account level app option and disable the intent to publish feature.


 Step 5 : You will be redirected to the screen where you will be able to see the client ID and client secret.


 Step 6 : Enter your redirect URI , the redirect URI is the URI where the Zoom app will give the access tokens in return. So basically It is our pega application requesting for the tokens, Copy the following and paste it in your Redirect URL For Oauth in the Zoom App.

http://localhost:YOURPORTNUMBER/prweb/PRRestService/oauth2/v1/redirect


 



 Step 7 : Also Copy paste the same redirect URL in the Whitelist URL section and click continue.



 Step 8 : In the Application Information Page Give your basic info of the app and click continue




Step 9 : Skip the feature section not important as of now.

Step 10 : In Scopes section , Click +AddScope and under meetings select three options.






Step 11: Do the same with the user scope give permissions to all three features and click on Done and continue. The zoom app is now ready to be integrated.



 Pega Configuration To Integrate With Zoom


Step 1 : Login to your application and create a authentication profile



Step 2 : Choose type as Oauth2.0



Step 3 : Complete the fields as below, Use client ID and secret from your zoom app

authorization endpoint : https://zoom.us/oauth/authorize

token endpoint : https://zoom.us/oauth/token

scope: meeting:write:admin





Step 4 : Create a Rest Integration. Configure -> Integrations -> Connectors -> Create REST Integration

Step 5 : Fill as below, click add authentication and select your Zoom Oauth

Endpoint URL : https://api.zoom.us/v2/users/me/meetings

    




Step 6 : Click Connect , sign in with your Zoom account and authorize






It is connected successfully make sure there is disconnect option to verify that pega and zoom are now connected.


Step 7 : Click on Next, Choose Get and Post method



Step 8 : Copy paste the following Request JSON in a notepad and save it as .json file

{

  "topic": "test",

  "type":2,

  "start_time": "2021-05-10T12:10:10Z",

  "duration":"3",

  "settings":{

   "host_video":true,

   "participant_video":true,

   "join_before_host":true,

   "mute_upon_entry":"true",

   "watermark": "true",

   "audio": "voip",

   "auto_recording": "cloud"

     }

 

 }




Step 9 : Add the .json file in the Integration wizard 



Step 10 : Click on Next , the generation starts....


Step 11 : Go to this dataclass in the app explorer



Step 12 : Choose the datapage created 



Step 13 : In the request DT delete the .defaultResponse_GET



Step 14 : Check in the datapage and run

 

Your done meeting has been created in your account! Two meetings created because we tested while creating in the rest integration wizard.


Tip : to avoid "Could not acquire fresh access tokens" error on running the datapage
follow the below steps, 
1) Have a button, in action sets  
1: Run Activity pxCreateAuthURL - pass my authentication Profile name as input 
2: Open URL in new Window Alternatate Domain Window = .pyOauthURLRedirect 
3: Refresh-this-section 4: Refresh-Current-Harness


Final Video Output:




Do Comment your thoughts!










    





















 





























Comments

  1. Followed the steps, it worked for me.. Thanks Sam for your support. Great work.

    ReplyDelete
  2. This is great - Can you also try to invoke JWT and consume it in Pega and perform the authorization? I don't any blogs/post documents the consumption of JWT as of now. This can be a good learning experience.

    ReplyDelete
    Replies
    1. Sounds like a plan! Let me try and update๐Ÿ˜€

      Delete

Post a Comment

Popular posts from this blog

Pega and Whatsapp Integration

Razorpay and Pega Integration

How to have a Voice OTP feature in Pega