# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


from mollie.api.error import Error

        # https://docs.mollie.com/reference/v2/profiles-api/create-profile

        body = "<h1>Create profile</h1>"
        data = {
            "name": "My website name",
            "website": "https://www.mywebsite.com",
            "email": "info@mywebsite.com",
            "phone": "+31208202070",
            "categoryCode": "5399",
            "mode": "live",
        }
        response = client.profiles.create(data)
        body += str(response)

        profile_id = response.id

        # https://docs.mollie.com/reference/v2/profiles-api/get-profile

        body += "<h1>Get profile</h1>"
        response = client.profiles.get(profile_id)
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/update-profile

        body += "<h1>Update profile</h1>"
        data.update(
            {
                "name": "My website name updated",
                "email": "updated-profile@example.org",

# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


# Path: examples/oauth/05-profiles.py
from mollie.api.error import Error


        # https://docs.mollie.com/reference/v2/profiles-api/create-profile

        body = "<h1>Create profile</h1>"
        data = {
            "name": "My website name",
            "website": "https://www.mywebsite.com",
            "email": "info@mywebsite.com",
            "phone": "+31208202070",
            "categoryCode": "5399",
            "mode": "live",
        }
        response = client.profiles.create(data)
        body += str(response)

        profile_id = response.id

        # https://docs.mollie.com/reference/v2/profiles-api/get-profile

        body += "<h1>Get profile</h1>"
        response = client.profiles.get(profile_id)
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/update-profile

        body += "<h1>Update profile</h1>"
        data.update(
            {
                "name": "My website name updated",
                "email": "updated-profile@example.org",

            }