Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Adnan Zahry

Greenhorn
+ Follow
since Mar 03, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adnan Zahry

I'm setting up a new connection between whatsapp and zendesk to support better Cust.service experience. The actual goal is to be able to sendout automated response through whatsapp that is triggered from salesforce, but I'm quite new to this and have limited knowledge about whatsapp API.

In our facebook business manager, I have created the Account API WhatsApp Business and also connected the phone number to the API whatsapp business, but the next step is confusing me, which I need to register the app using /v1/account node account. I dont understand this part.

further step is "Request a Registration Code" Send the telephone number and vname certificate string encoded in your base64 to request the registration code. You can request to receive your code via SMS or voice call.

Use endpoint / v1 / account to request your registration code.

POST /v1/account

{ "cc": "your-country-code", "phone_number": "your- phone-number-without-country-code", "method": "sms" | "voice", "cert": "your-verified-name-cert-in-base64", "pin": "your-existing-6-digit-pin" # required if two-factor verification is enabled }

I expect to have whatsapp template that can be used by our registered phone number and set up auto response, then later we can create trigger in salesforce using something (which I still dont know)

Appreciate the help!!
2 months ago

Campbell Ritchie wrote:Please always tell us where such code comes from, to prevent copyright problems and to enable us to verify the original. I have seen similar code in Head First Java by Sierra and Bates, but I think that was slightly different.

Not Doobee but DooBee. B is different from b.



Thanks Ritchie, yes It comes from Head First Java by Sierra and Bates, however I have solved the above code and have a new little flaw, see below;



The result in my terminal :
99 bottles of beer on the wall
99 bottles of beer.
Take one down.
Pass it around.
98 bottles of beer on the wall
98 bottles of beer on the wall
98 bottles of beer.
Take one down.
Pass it around.
97 bottles of beer on the wall
97 bottles of beer on the wall
97 bottles of beer.
Take one down.
Pass it around.

My question is how to get result when its compiled without carrying over the previous loop, so the result would be like;
99 bottles of beer on the wall
99 bottles of beer.
Take one down.
Pass it around.
98 bottles of beer on the wall
98 bottles of beer.
Take one down.
Pass it around.
97 bottles of beer on the wall
97 bottles of beer.
Take one down.
Pass it around.

no carryover from previous end loop, which part of the code I should modify?

hope this is clear enough.
5 months ago
Hi guys, Im working on a small exercise but I have doubt on how to solve below code?

Given the output
% java DooBee
DooBeeDooBeeDo

public class Doobee {
public static void main(String[] args) {
int x = 1;
while (x < 1) {
System.out.println ("Doo");
System.out.println ("Bee");
x = x + 1;
}
if (x == 3) {
System.out.println("Do");
}
}
}
5 months ago
Hi, Im just started learning JAVA and trying to understand the "add entry to PATH environment".

Im using MAC OS btw, and have no idea how to do this, I do understand only on windows.

anyone can help?
5 months ago