One of key , reference or email parameters should be provided to identify the profile.
{'code': 200,'data': [{'alt': 'alt_key','created_at': '2020-09-11T09:58:32+0000','extension': '.pdf','file_name': 'resume','file_size': 528305,'original_file_name': 'resume','public_url': 'public_url_resume','type': 'resume','updated_at': '2020-09-11T09:58:32+0000'},{'alt': 'alt_key','created_at': '2020-09-11T09:58:32+0000','extension': '.pdf','file_name': 'original','file_size': 537789,'original_file_name': 'original','public_url': 'public_url_original','type': 'original','updated_at': '2020-09-11T09:58:32+0000'}],'message': 'Profile attachment list'}
{"code": 400,"message": "Invalid source fields"}
{"code": 401,"message": "Unauthorized. Invalid secret key: xxxxx "}
from hrflow import Hrflow​client = Hrflow(api_secret="Your API Key", api_user="Your API user email")​client.profile.attachment.list(source_key="source_key",key="profile_key",# ORreference='profile_reference',# ORemail='example@example.com')
import Hrflow from 'hrflow';const client = new Hrflow({api_secret: 'Your API Key',api_user: 'Your API user email',});​client.profile.attachment.list('source_key', {key: 'profile_key',// orreference: 'profile_reference'// oremail: 'example@example.com',}).then(response => {console.log(response);// ...});