logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True debug = True phone_number = '1211211212' platform_username = '******' client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) # get fraud level try: response_content = client.get_fraud_level(phone_number, platform_username) logger.info(response_content) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True phone_number = '1211211212' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get fraud level try: response_content = client.get_fraud_level(phone_number, account_id) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True profile_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by profile id try: response_content = client.get_by_profile_id(profile_id, account_id) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True profile_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # update by profile id try: data = {'email': '*****@*****.**'} client.update_by_profile_id(profile_id, data, account_id) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' account_id = 'test' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: data = {'email': '*****@*****.**'} response_content = client.update_platform_account(data, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True debug = True phone_number = '1211211212' platform_username = '******' client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) # get by phone try: response_content = client.get_by_phone(phone_number, platform_username) logger.info(response_content) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True account_id = 'test' data = { 'first_name': 'Jerry', 'last_name': 'Seinfeld', 'address': '129 West 81st Street', 'city': 'New York', 'state': 'NY', 'zip_code': '10024', } client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by address try: response_content = client.get_by_name_address(data, account_id) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' platform_username = '******' sandbox = True debug = True client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) try: response_content = client.get_platform_user(platform_username) logger.info(response_content) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text logger.error(
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True email = '*****@*****.**' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by email try: response_content = client.get_by_email(email, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True profile_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # update by profile id try: data = {'email': '*****@*****.**'} client.update_by_profile_id(profile_id, data, account_id) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True phone_number = '1211211212' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by phone try: response_content = client.get_by_phone(phone_number, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True profile_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by profile id try: response_content = client.get_by_profile_id(profile_id, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' account_id = 'test' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: response_content = client.get_platform_account(account_id) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True phone_number = '1211211212' account_id = 'test' client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get fraud level try: response_content = client.get_fraud_level(phone_number, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
username = '******' password = '******' sandbox = True debug = True platform_username = '******' address_data = { 'first_name': 'Jerry', 'last_name': 'Seinfeld', 'address': '129 West 81st Street', 'city': 'New York', 'state': 'NY', 'zip_code': '10024', } client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) # get by address try: response_content = client.get_by_address_name(address_data, platform_username) logger.info(response_content) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' account_id = 'test' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: response_content = client.get_platform_account(account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True debug = True profile_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' platform_username = '******' client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) # update by profile id try: data = {'email': '*****@*****.**'} client.update_by_profile_id(profile_id, data, platform_username) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' platform_username = '******' sandbox = True debug = True client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) try: response_content = client.get_platform_statistics(page=1) logger.info(response_content) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text logger.error( 'HTTPError. Status code {}. Response message: {}'. format(response_code, response_message))
handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True account_id = 'test' data = { 'first_name': 'Jerry', 'last_name': 'Seinfeld', 'address': '129 West 81st Street', 'city': 'New York', 'state': 'NY', 'zip_code': '10024', } client = NextCallerPlatformClient(username, password, sandbox=sandbox) # get by address try: response_content = client.get_by_name_address(data, account_id) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: data = { 'id': 'test_username', 'first_name': 'Clark', 'last_name': 'Kent', 'email': '*****@*****.**' } response_content = client.create_platform_account(data) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )
from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: data = { 'id': 'test_username', 'first_name': 'Clark', 'last_name': 'Kent', 'email': '*****@*****.**' } response_content = client.create_platform_account(data) logger.info(response_content) except HttpException as err: logger.error( 'Response message: {}'.format(err.message), )
logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' platform_username = '******' sandbox = True debug = True client = NextCallerPlatformClient(username, password, sandbox=sandbox, debug=debug) try: data = {'email': '*****@*****.**'} response_content = client.update_platform_user(platform_username, data) logger.info(response_content) except ValueError as err: logger.error('Validation Error: {}'.format(err)) except HTTPError as err: response = err.response response_code = response.status_code # try to parse error json message try: response_message = response.json() except (ValueError, TypeError): response_message = response.text
import logging from pynextcaller.client import NextCallerPlatformClient from pynextcaller.exceptions import HttpException logger = logging.getLogger('nextcaller') handler = logging.StreamHandler() logger.addHandler(handler) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') handler.setFormatter(formatter) username = '******' password = '******' account_id = 'test' sandbox = True client = NextCallerPlatformClient(username, password, sandbox=sandbox) try: response_content = client.get_platform_statistics(page=1) logger.info(response_content) except HttpException as err: logger.error('Response message: {}'.format(err.message), )