Is it possible to check balance amount of my SIM card using AT Command?
Or is there any other way to do this without taking out the SIM card from GSM modem?or using PHP script..?
Thank you.
You can send a SMS message via AT commands to a phone number the operator uses for reporting the balance.
For example: Vodafone.nz uses text 'BAL' on phone number 777. The operator then sends back the balance via incoming SMS message.
To send a message use AT+CMGF and AT+CMGS commands.
To read a message (containing the balance) use AT+CMGR command.
Related
This is an authentication flow, which logs in the user with only the phone number provided (Whatsapp style). The Steps are:
User enters phone number and sent to server.
Server generated 4 digit random key, and save the pair (phone,key) in DB.
Server asks 3rd party SMS service to send key to phone.
SMS service sends message.
User enters the key from sms, and together with phone, sent to server.
Server checks the pair against the DB.
If pair exists, server sends back a token for further calls.
What I am trying to understand is where services like Twilio and Nexmo fit in (or replace parts of the flow).
From what I understand, looking at Nexmo for example,
I can replace steps 2 and 3 with an API call to:
https://api.nexmo.com/verify/
and save the request_id from the response in the DB as pair (phone,request_id).
And now, when the user enters a 4 digit code and sends it back,
I need to call:
https://api.nexmo.com/verify/check/json
providing it with request_id and code.
But where do I get the request_id?
Do the server needs to send it back to the client, the moment it gets it from Nexmo?
I can't see the benefits of using Nexmo here, what will it save me?
Answer to your first question: the request_id is part of the response to the first verify API call. See: https://docs.nexmo.com/index.php/verify/verify
As to what are the benefits of Nexmo here, I believe you have two options:
Generate your own code, use Nexmo to text it to your user, have the user submit the code back to your application, verify code against your own database.
Use Nexmo verify service to generate and send the code to the user, store the returned request_id in your db, have user submit code to your application, call Nexmo verify API to validate code.
In some ways the first option is easier as it is less API calls. However the benefit of the second option, using Nexmo Verify, is that they provide a whole lot more capabilities into the service to fall back to a voice call if SMS isn't working, filter out virtual phone numbers to prevent spam, you don't have to pay for failed SMS attempts, reporting/analytics, etc. etc.
Hopefully that helps a little.
Is there any chance to send sms only to one specified phone number?
I know that it must be executed only with native text editor (SmsComposeTask or ChatMessageManager), but is it possible to block addition of another recipients phone numbers?
Thanks in advance
The answer is basically NO.
Once you open the SMSComposeTask then basically your APP does not have any control over it.
The user can change recipients or even the text.
If you do want this then : one way to overcome this would be to send the message from the server by connecting to a web service. So the SMS goes from the server and not from the phone.
I need to create an application that can accept BitCoin donations. I will have clients sending the data and a server to collect the results. Now, I have my own BitCoin account (on http://ww.MyBitCoin.com) but how would I transfer coins automatically from the client to my server where it will then be added to my account?
I'm not certain what you're asking here.
You want your application to send coins from a remote machine to your server? Due to the nature of bitcoins, this isn't possible. What you can do, however, is ask for donations, and give out your receiving address, which is almost like an account number at a bank. There is a page at http://www.weusecoins.com/ that will tell you how to get a receiving address, I highly recommend reading that site.
I'm trying to develop an application in oracle apex that would send SMS to a mobile phone and I don't seem to know how to go about it.
I've read articles on other programming languages but don't know how to implement using apex.
I need instructions to guide me, willing to do any assignments I'd be given.
Why can't you just send them as email?
You can send email to SMS gateways and it will be received as a text message. You will need to know the address used by your recipient's carrier, but there are various sources listing each carrier's address and message format, such as this.
For example, to send to a number typically expressed in the USA as 987-555-0100, you would email 9875550100#SMS-gateway.
I'd like to develop a tracking system using an API of course (like the famous Orange API).
the idea is simple:
I send a SMS (from my Web interface) to the person i want to track
The person's mobile terminal (GPS like this) send me back automatically
the coordinates by SMS.
The sent information are displayed on the user's web interface.
The questions are simple:
How the terminal can send automatically the response?
How to indicate in the message that the information is for "user4655"?
How to make connection between the information and the database?
Thanks,
Regards.
* How the terminal can send automatically the response?
Ans: You set the gateway and the time intervals you want the device to send the sms to on the device itself.
* How to indicate in the message that the information is for "user4655"?
Ans: The gateway you use will have the API to determine that the number it is sent from. The device will use a registered phone number from either a sim or enabled by one of those cell providers.
* How to make connection between the information and the database?
Ans: I dont understand this. But I'm guessing you will have a database to keep track of the user data. You'll just probably need another table that is a child of the user, which has a list of the data and the time they came in.