Module: FullContact::Client::Provisioning
- Included in:
- FullContact::Client
- Defined in:
- lib/fullcontact/client/provisioning.rb
Instance Method Summary collapse
-
#create_new_api_key ⇒ Object
Public:The Provisioning method creates a new API key based on an Account Key.
Instance Method Details
#create_new_api_key ⇒ Object
Public:The Provisioning method creates a new API key based on an Account Key. This method is useful when your application has many end users that you would like to track separately. An account key is required for accessing this api method. This account key can be initialized through the configure method. For getting an account key, send an email to [email protected].
Example
api_key = FullContact.create_new_api_key
Returns a hash which contains the generated api_key and monthly quota
16 17 18 19 20 21 22 |
# File 'lib/fullcontact/client/provisioning.rb', line 16 def create_new_api_key # return error if no provisioning key defined return unless FullContact.[:account_key] self.endpoint = 'https://api.fullcontact.com/apiKey' = {:accountKey => FullContact.[:account_key]} get('new', ) end |