Skip to content

Commit cfcff6d

Browse files
committed
Merge branch 'master' of https://github.com/jrejaud/TwilioLookup
# Conflicts: # .gitignore
2 parents 2151d18 + 9388f84 commit cfcff6d

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
# Generated files
2121
bin/
2222
gen/
23+
<<<<<<< HEAD
2324
out/
25+
=======
26+
>>>>>>> 9388f8405b5df1fef111e33bb060b593172eca3b
2427

2528
# Gradle files
2629
.gradle/
@@ -40,6 +43,7 @@ proguard/
4043

4144
# Android Studio captures folder
4245
captures/
46+
<<<<<<< HEAD
4347

4448
# Intellij
4549
*.iml

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Jordan Réjaud
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# TwilioLookup
2+
Android wrapper for Twilio's Phone Lookup API
3+
4+
Simple Android wrapper for [Twilio's Phone Lookup](https://www.twilio.com/lookup)
5+
6+
Example
7+
===
8+
```
9+
TwilioLookup.setAuthorization("yourTwilioAccountSid", "yourTwilioAuthToken");
10+
11+
TwilioLookup.lookup("theNumberYouWantToLookup", new TwilioLookup.OnResponseCallback() {
12+
@Override
13+
public void onValidResponse(TwilioLookupResponse response) {
14+
Log.d("TAG","Success, country code: "+response.getCountryCode()+" "+response.getCarrier().getName());
15+
}
16+
17+
@Override
18+
public void onInvalidResponse(Response response) {
19+
Log.d("TAG","Failure, phone number is not valid, "+response.message());
20+
}
21+
22+
@Override
23+
public void onFailure(Throwable throwable) {
24+
Log.e("TAG", "Error: " + throwable.toString());
25+
}
26+
});
27+
```
28+
29+
30+
Installation
31+
===
32+

0 commit comments

Comments
 (0)