Sms API - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Sms API (/showthread.php?tid=56964) |
Sms API - El Forum - 02-03-2013 [eluser]SamoualSys[/eluser] i have sms api its not working its give me nothing can any one help me in that this the code for the sms api Code: class Sms_api { Code: Error : 0 Code: $this->load->library('sms_api'); Sms API - El Forum - 02-03-2013 [eluser]Unknown[/eluser] Are you aware that the api URI in the code is a sedo parked domain? http://cl.ly/image/240A221E3f10 Sms API - El Forum - 02-04-2013 [eluser]SamoualSys[/eluser] i have changed the main URL and after i read your post i have update my post with something will not led people to think about the URL thanks a lot for your post . Sms API - El Forum - 02-09-2013 [eluser]SamoualSys[/eluser] the code is working now i have found that i mis read the api of the provider i was writing '&text;=' . urlencode( $text ). while it should be '&msgtext;=' . urlencode( $text ). also i have changed the code in the return value from true to show me the result of the url '&msg;=' . urlencode( $text ). '&sender;=' . $this->sendname . '&encoding;=' . $this->encode ; $r = @file( $url ); $res = substr( $r[0], 8, 1); if( !$res == '0' ){ return false; } return $r; } } thanks every one |