def create(method, url, params, hmac_key):
    " Generates the OAuth1.0 signature used as the value for the query string parameter 'oauth_signature'\n    \n        :param method: HTTP method that will be used to send the request ( 'GET' | 'POST' ); EmailageClient uses GET\n        :param url: API domain and endpoint up to the ?\n        :param params: user-provided query string parameters and the OAuth1.0 parameters\n            :method add_oauth_entries_to_fields_dict:\n        :param hmac_key: for Emailage users, this is your consumer token with an '&' (ampersand) appended to the end\n\n        :return: str value used for oauth_signature\n\n        :type method: str\n        :type url: str\n        :type params: dict\n        :type hmac_key: str\n\n        :Example:\n\n        >>> from emailage.signature import add_oauth_entries_to_fields_dict, create\n        >>> your_api_key = 'SOME_KEY'\n        >>> your_hmac_key = 'SOME_SECRET' + '&'\n        >>> api_url = 'https://sandbox.emailage.com/emailagevalidator/'\n        >>> query_params = { 'query': 'example@example.com', 'user_email': 'example@example.com' }\n        >>> query_params = add_oauth_entries_to_fields_dict(your_api_key, query_params)\n        >>> query_params['oauth_signature'] = create('GET', api_url, query_params, your_hmac_key)\n\n    "
    query = normalize_query_parameters(params)
    base_string = concatenate_request_elements(method, url, query)
    digest = hmac_sha1(base_string, hmac_key)
    return encode(digest)
Generates the OAuth1.0 signature used as the value for the query string parameter 'oauth_signature'

:param method: HTTP method that will be used to send the request ( 'GET' | 'POST' ); EmailageClient uses GET
:param url: API domain and endpoint up to the ?
:param params: user-provided query string parameters and the OAuth1.0 parameters
    :method add_oauth_entries_to_fields_dict:
:param hmac_key: for Emailage users, this is your consumer token with an '&' (ampersand) appended to the end

:return: str value used for oauth_signature

:type method: str
:type url: str
:type params: dict
:type hmac_key: str

:Example:

>>> from emailage.signature import add_oauth_entries_to_fields_dict, create
>>> your_api_key = 'SOME_KEY'
>>> your_hmac_key = 'SOME_SECRET' + '&'
>>> api_url = 'https://sandbox.emailage.com/emailagevalidator/'
>>> query_params = { 'query': 'example@example.com', 'user_email': 'example@example.com' }
>>> query_params = add_oauth_entries_to_fields_dict(your_api_key, query_params)
>>> query_params['oauth_signature'] = create('GET', api_url, query_params, your_hmac_key)
def create(method, url, params, hmac_key):
    " Generates the OAuth1.0 signature used as the value for the query string parameter 'oauth_signature'\n    \n        :param method: HTTP method that will be used to send the request ( 'GET' | 'POST' ); EmailageClient uses GET\n        :param url: API domain and endpoint up to the ?\n        :param params: user-provided query string parameters and the OAuth1.0 parameters\n            :method add_oauth_entries_to_fields_dict:\n        :param hmac_key: for Emailage users, this is your consumer token with an '&' (ampersand) appended to the end\n\n        :return: str value used for oauth_signature\n\n        :type method: str\n        :type url: str\n        :type params: dict\n        :type hmac_key: str\n\n        :Example:\n\n        >>> from emailage.signature import add_oauth_entries_to_fields_dict, create\n        >>> your_api_key = 'SOME_KEY'\n        >>> your_hmac_key = 'SOME_SECRET' + '&'\n        >>> api_url = 'https://sandbox.emailage.com/emailagevalidator/'\n        >>> query_params = { 'query': 'example@example.com', 'user_email': 'example@example.com' }\n        >>> query_params = add_oauth_entries_to_fields_dict(your_api_key, query_params)\n        >>> query_params['oauth_signature'] = create('GET', api_url, query_params, your_hmac_key)\n\n    "
    query = normalize_query_parameters(params)
    base_string = concatenate_request_elements(method, url, query)
    digest = hmac_sha1(base_string, hmac_key)
    return encode(digest)