braze-client-sdk


Namebraze-client-sdk JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryCreates a SDK for Braze platform
upload_time2024-02-13 21:15:40
maintainer
docs_urlNone
authorMarcelo Kafels
requires_python>=3.9
license
keywords braze sdk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # braze-python-sdk

The SDK is unofficial and is still under development.

## Example

### Create the SDK instance
```PYTHON
from json import dumps

from braze import Braze

YOUR_HOST = "https://..."
YOUR_TOKEN = "12345678-1234-1234-1234-123456789012"

braze = Braze(
    host=YOUR_HOST,
    token=YOUR_TOKEN
)
```

### Call /users/track endpoint
```PYTHON
track_response = braze.users.track(
    content={
        "attributes": [
            {
                "external_id": "hello-world",
                "first_name": "Hello world"
            }
        ]
    }
)

print(dumps(track_response, indent=True))
# Console output
# {
#   "attributes_processed": 1,
#   "message": "success"
# }
```

### Call /users/delete endpoint
```PYTHON
delete_response = braze.users.delete(
    content={
        "external_ids": [
            "hello-world"
        ]
    }
)

print(dumps(delete_response, indent=True))
# Console output
# {
#   "deleted": 1,
#   "message": "success"
# }
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "braze-client-sdk",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "braze,sdk",
    "author": "Marcelo Kafels",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# braze-python-sdk\n\nThe SDK is unofficial and is still under development.\n\n## Example\n\n### Create the SDK instance\n```PYTHON\nfrom json import dumps\n\nfrom braze import Braze\n\nYOUR_HOST = \"https://...\"\nYOUR_TOKEN = \"12345678-1234-1234-1234-123456789012\"\n\nbraze = Braze(\n    host=YOUR_HOST,\n    token=YOUR_TOKEN\n)\n```\n\n### Call /users/track endpoint\n```PYTHON\ntrack_response = braze.users.track(\n    content={\n        \"attributes\": [\n            {\n                \"external_id\": \"hello-world\",\n                \"first_name\": \"Hello world\"\n            }\n        ]\n    }\n)\n\nprint(dumps(track_response, indent=True))\n# Console output\n# {\n#   \"attributes_processed\": 1,\n#   \"message\": \"success\"\n# }\n```\n\n### Call /users/delete endpoint\n```PYTHON\ndelete_response = braze.users.delete(\n    content={\n        \"external_ids\": [\n            \"hello-world\"\n        ]\n    }\n)\n\nprint(dumps(delete_response, indent=True))\n# Console output\n# {\n#   \"deleted\": 1,\n#   \"message\": \"success\"\n# }\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Creates a SDK for Braze platform",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Kafels/braze-python-sdk/",
        "Issues": "https://github.com/Kafels/braze-python-sdk/issues"
    },
    "split_keywords": [
        "braze",
        "sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79a9a9277905519ef34fb6163bc8922ae4d68cf4212849a5d7c9969aaf903e9d",
                "md5": "1cf77c09d5fea45eeefe5989cc46a085",
                "sha256": "cccc8414210c6c1fe1c45cf118cbe1a0e747132d48ab1dc8ec36f04f45875eda"
            },
            "downloads": -1,
            "filename": "braze_client_sdk-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1cf77c09d5fea45eeefe5989cc46a085",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9719,
            "upload_time": "2024-02-13T21:15:40",
            "upload_time_iso_8601": "2024-02-13T21:15:40.790885Z",
            "url": "https://files.pythonhosted.org/packages/79/a9/a9277905519ef34fb6163bc8922ae4d68cf4212849a5d7c9969aaf903e9d/braze_client_sdk-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-13 21:15:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Kafels",
    "github_project": "braze-python-sdk",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "lcname": "braze-client-sdk"
}
        
Elapsed time: 0.41005s