Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fullcontact
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
prospector
fullcontact
Commits
d17f4a5a
Commit
d17f4a5a
authored
Jun 23, 2016
by
Adri Van Houdt
Committed by
GitHub
Jun 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15 from fullcontact/master
Removed Facebook Lookups
parents
e204e690
65e3a09f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
60 deletions
+0
-60
README.md
README.md
+0
-10
person.js
endpoints/person.js
+0
-34
person.test.js
test/person.test.js
+0
-16
No files found.
README.md
View file @
d17f4a5a
...
...
@@ -189,16 +189,6 @@ fullcontact.person.twitter('3rdEden', function (err, data) {
});
```
#### person.facebook(handle, [queue], fn);
Retrieves contact information by Facebook username.
```
js
fullcontact
.
person
.
facebook
(
'john.smith'
,
function
(
err
,
data
)
{
..
});
```
#### person.phone(handle, [queue], fn);
Retrieves contact information by phone number.
...
...
endpoints/person.js
View file @
d17f4a5a
...
...
@@ -66,40 +66,6 @@ Person.prototype.twitter = function twitter() {
};
/**
* Retrieve contact information by Facebook username.
*
* ```js
* fullcontact.person.facebook('arnout.kazemier', [queue], fn);
* ```
*
* @returns {Person}
* @api public
*/
Person
.
prototype
.
facebook
=
function
facebook
()
{
var
args
=
this
.
api
.
args
(
arguments
,
'queue'
);
this
.
send
({
facebookUsername
:
args
.
value
},
args
);
return
this
;
};
/**
* Retrieve contact information by Facebook id.
*
* ```js
* fullcontact.person.facebookId('1844599060', [queue], fn);
* ```
*
* @returns {Person}
* @api public
*/
Person
.
prototype
.
facebookId
=
function
facebook
()
{
var
args
=
this
.
api
.
args
(
arguments
,
'queue'
);
this
.
send
({
facebookId
:
args
.
value
},
args
);
return
this
;
};
/**
* Retrieve contact information by phone number.
*
* ```js
...
...
test/person.test.js
View file @
d17f4a5a
...
...
@@ -77,22 +77,6 @@ describe('FullContact.Person', function () {
it
(
'provides the proper casing'
);
});
describe
(
'#facebook'
,
function
()
{
it
(
'retrieves data by facebook username'
,
function
(
done
)
{
api
.
person
.
facebook
(
'arnout.kazemier'
,
done
);
});
it
(
'provides the proper casing'
);
});
describe
(
'#facebookId'
,
function
()
{
it
(
'retrieves data by facebook id'
,
function
(
done
)
{
api
.
person
.
facebookId
(
'1844599060'
,
done
);
});
it
(
'provides the proper casing'
);
});
describe
(
'#phone'
,
function
()
{
it
(
'retrieves data by phone number'
,
function
(
done
)
{
api
.
person
.
phone
(
'+13037170414'
,
done
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment