elmgadmini sabrine
elmgadmini sabrine

Reputation: 29

how can i integrate nexmo SMS account verification with API on wordpress

I get an API from Nexmo and a want to integrate them on my woocommerce website ,i mean that's. want to send SMS for account verification after registration. I had used this code `unction mysite_woocommerce_order_status_processing( $order_id ) {

$mobile="123456";

$url="****/api.php?username=******&password=1234&source=UPDATE&dmobile=".$mobile."&message='.$msg.' ";

$response = wp_remote_get( $url ); //print_r($response);

} add_action( 'woocommerce_order_status_processing','mysite_woocommerce_order_status_processing' );`,but i don't think that what want exactly.
please can help me .

Upvotes: 0

Views: 224

Answers (1)

Lorna Mitchell
Lorna Mitchell

Reputation: 1986

For account verification you can use the Verify API which already does what you need. There are PHP-specific examples available under "building blocks".

If you do want to send SMS yourself then I recommend you check out the developer documentation for SMS API, it's here: https://developer.nexmo.com/messaging/sms/building-blocks/send-an-sms/php.

If you get stuck working through the resources, try asking a more specific question and I or others might be able to help further.

Upvotes: 0

Related Questions