function sms_send() { $url = "http://bulksmsbd.net/api/smsapi?api_key=spz6JXwoCEfWPzcWBSZ9&type=text&number=Receiver&senderid=Random&message=TestSMS"; $api_key = "spz6JXwoCEfWPzcWBSZ9"; $senderid = "Random"; $number = "8801234567890"; $message = "[otp] is your OTP to confirm your phone no at BeeeBazar.com . Thanks for shopping. Stay with us."; $data = [ "api_key" => $api_key, "senderid" => $senderid, "number" => $number, "message" => $message ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); return $response; } {"id":1111,"date":"2025-02-25T04:13:48","date_gmt":"2025-02-24T22:13:48","guid":{"rendered":"https:\/\/beeebazar.com\/?post_type=product&p=1111"},"modified":"2025-02-25T04:13:48","modified_gmt":"2025-02-24T22:13:48","slug":"radhuni-mejbani-beef-masala-68gm","status":"publish","type":"product","link":"https:\/\/beeebazar.com\/shop\/spices-masala\/radhuni-mejbani-beef-masala-68gm\/","title":{"rendered":"Radhuni Mejbani Beef Masala: 68gm"},"content":{"rendered":"
Product Name: Radhuni Mejbani Beef Masala
\nBrand: Radhuni
\nCompany: Square Food & Beverage Limited
\nVolume\/Weight:68gm
\nPack Type: Poly Pack<\/p>\n","protected":false},"excerpt":{"rendered":"
Product Name: Radhuni Mejbani Beef Masala
\nBrand: Radhuni
\nCompany: Square Food & Beverage Limited
\nVolume\/Weight:68gm
\nPack Type: Poly Pack<\/p>\n","protected":false},"featured_media":1112,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[47],"product_cat":[105,126,45],"product_tag":[48,131,49],"class_list":{"0":"post-1111","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_brand-radhuni","7":"product_cat-food-grains","8":"product_cat-radhuni","9":"product_cat-spices-masala","10":"product_tag-masala","11":"product_tag-mejbani-beef-masala","12":"product_tag-radhuni","14":"first","15":"instock","16":"sale","17":"shipping-taxable","18":"purchasable","19":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product\/1111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/comments?post=1111"}],"version-history":[{"count":1,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product\/1111\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product\/1111\/revisions\/1113"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/media\/1112"}],"wp:attachment":[{"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/media?parent=1111"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product_brand?post=1111"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product_cat?post=1111"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/beeebazar.com\/wp-json\/wp\/v2\/product_tag?post=1111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}