Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rivsc/nilpart
Partoo connector
https://github.com/rivsc/nilpart
Last synced: 20 days ago
JSON representation
Partoo connector
- Host: GitHub
- URL: https://github.com/rivsc/nilpart
- Owner: rivsc
- Created: 2021-10-29T14:13:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-16T09:45:17.000Z (about 3 years ago)
- Last Synced: 2024-10-31T18:12:40.038Z (2 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nilpart USAGE
You need a Partoo.co Api-Key.
## Initialize Nilpart
np = Nilpart::Nilpart.new({ api_key: YOUR_API_KEY, mode: "production" }) # mode must be 'production' or 'sandbox'
## Example of data returned
np.businesses_search.first.dig('businesses',0,'name') # name of business
np.businesses_search.first.dig('businesses',0,'city') # City
np.businesses_search.first.dig('businesses',0,'zipcode') # Postcode
np.businesses_search.first.dig('businesses',0,'address2')
np.businesses_search.first.dig('businesses',0,'address_details','street_type')
np.businesses_search.first.dig('businesses',0,'address_details','street_name')
np.businesses_search.first.dig('businesses',0,'contacts',0,'phone_numbers')
np.businesses_search.first.dig('businesses',0,'contacts',0,'email')
## Open hoursnp.businesses_search.first.dig('businesses',0,'open_hours')
np.businesses_search.first.dig('businesses',0,'open_hours','monday')
np.businesses_search.first.dig('businesses',0,'open_hours','tuesday')
np.businesses_search.first.dig('businesses',0,'open_hours','wednesday')
np.businesses_search.first.dig('businesses',0,'open_hours','thursday')
np.businesses_search.first.dig('businesses',0,'open_hours','friday')
np.businesses_search.first.dig('businesses',0,'open_hours','saturday')
np.businesses_search.first.dig('businesses',0,'open_hours','sunday')
## More ?See available methods here : https://github.com/rivsc/nilpart/blob/main/lib/nilpart/nilpart.rb