Build the API URL.

def _get_url(method,
             api_url,
             api_version):
    '''
    Build the API URL.
    '''
    return '{url}/{version}/{method}.json'.format(url=api_url,
                                                  version=float(api_version),
                                                  method=method)