# Import Namely API ClientfromnamelyimportClient# Initialise Namely API Clientclient=Client("https://<your-domain>.namely.com/api/v1/","<your-namely-api-token>")# Get all profilesget_all=client.profiles.get_all(multi_threading=False)# Get profile by Namely idperson=client.profiles.get("<person-namely-id>")# Get my Namely profileme=client.profiles.get_me()# Get all profiles by filtersmikes=client.profiles.filter(first_name="Mike")# Update profile by Namely idprofile_to_update={"user_status":"inactive"}updated_profile=client.profiles.update("<person-namely-id>",profile_to_update)# Create Namely profilenew_profile={"first_name":"John","last_name":"Smith","user_status":"active","start_date":"2019-01-01","email":"work@email.com"}created_profile=client.profiles.create(new_profile)