Permalink
Sir, I have made an application in which I have send the Sms to client in text format through way2sms website. I have written the code but I have occurred problem 'SmsClient.dll' is not present in vs 2010. So that we can't taken the namespace 'using SmsClient;' in csharp. Oct 29, 2010 160by2.com, the free SMS provider website, is providing a free mobile application for cell phone users to send 80 character free SMS messages to any mobile in India. The 28 KB mobile application is easier to install and have added features for easy text messaging.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up Find file Copy path
Cannot retrieve contributors at this time
/* |
* Copyright 2016 sachin |
* |
* Licensed under the Apache License, Version 2.0 (the 'License'); |
* you may not use this file except in compliance with the License. |
* You may obtain a copy of the License at |
* |
* http://www.apache.org/licenses/LICENSE-2.0 |
* |
* Unless required by applicable law or agreed to in writing, software |
* distributed under the License is distributed on an 'AS IS' BASIS, |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* See the License for the specific language governing permissions and |
* limitations under the License. |
*/ |
importcom.jaunt.NotFound; |
importcom.jaunt.ResponseException; |
importcom.jaunt.UserAgent; |
importcom.jaunt.component.Form; |
importsun.management.resources.agent; |
/** |
* Created by sachin on 9/4/16. |
*/ |
publicclassM160by2 { |
publicstaticStringToken; |
Form sms; |
UserAgent agent; |
/** |
* Used to login at http://www.160by2.com bu using username and password |
* @param username |
* @param Password |
* @throws ResponseException |
* @throws NotFound |
*/ |
publicvoidlogin(Stringusername,StringPassword) throwsResponseException, NotFound { |
agent=newUserAgent(); |
agent.visit('http://www.160by2.com/Index'); |
Form form=agent.doc.getForm(0); |
form.setTextField('username',username); |
form.setPassword('password',Password); |
form.submit(); |
Token=agent.getLocation().substring(agent.getLocation().indexOf('?id=')+4); |
agent.visit('http://www.160by2.com/SendSMS?id='+Token); |
sms=agent.doc.getForm(0); |
} |
/** |
* Used to send msg to specified phone number. |
* @param message |
* @param Phone_No |
* @throws NotFound |
* @throws ResponseException |
*/ |
publicvoidsendSMS(Stringmessage,StringPhone_No) throwsNotFound, ResponseException { |
sms.setTextField(sms.getElement().findFirst('<input type='text' placeholder='Enter Mobile Number or Name'').getAt('name'),Phone_No); |
sms.setTextArea('sendSMSMsg',message); |
sms.setHidden('maxwellapps',Token); |
sms.setHidden('hid_exists','no'); |
sms.setAction('http://www.160by2.com/'+sms.getElement().findFirst('<input type='hidden' id='fkapps'').getAt('value')); |
sms.submit(); |
System.out.println(agent.doc.innerHTML()); |
} |
} |
Copy lines Copy permalink
added
Description
160by2 is a FREE Android app to send Free SMS using www.160by2.com the most popular SMS site in India. Residents of India, Kuwait, Malaysia, Philippines, Saudi, Singapore, UAE, UK, USA can register for an account and send Free SMS to India, Singapore and Malaysia. If you already have a 160by2 account then you can use the app with your existing account or you can register for new account using the app. Contact management in the App helps you in creating groups, adding contacts. Also all contacts from the phone book can be added to the App in a single go. You can view sent messages in outbox.
0
favourites
favourites
Tags: 160by2, Free SMS, SMS, Text Messaging
Category: Communication & Social Networking
Category: Communication & Social Networking
- Version
- 7.0
- Format
- apk
- File Size
- 1,367 KB
- Requires
- Android 2.1 or above
Download 160by2 - Free SMS Android App APK to your phone for free.
Having trouble downloading or installing? We can help! Comment below or post a message on our forum.