phone_search: Find businesses by phone number

Description Usage Arguments Value References Examples

View source: R/phone-search.R

Description

Finds businesses with a particular phone number.

Usage

1
phone_search(phone, access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))

Arguments

phone

A string representing a phone number. This should include the country code and consist of a plus sign followed by only digits, for example "+1234567890".

access_token

A string giving an access token to authenticate the API call. See get_access_token.

Value

A data frame with 24 columns. Each row corresponds to one business.

Note that there may be more than one business returned, for example where multiple stores share a central phone number.

References

https://www.yelp.com/developers/documentation/v3/business_search_phone

Examples

1
2
3
## Marked as don't test because an access token is needed
call_me <- phone_search("+12127052000")
if(interactive()) View(call_me) else str(call_me)

richierocks/yelp documentation built on Oct. 17, 2018, 2:21 a.m.