Python
# To use the Python SDK, install the package: # pip install memobase from memobase import MemoBaseClient client = MemoBaseClient(project_url='PROJECT_URL', api_key='PROJECT_TOKEN') u = client.get_user(uid) events = u.event(topk=10, max_token_size=1000, need_summary=True)
{ "data": { "events": [ { "id": "<string>", "event_data": { "profile_delta": [ { "content": "<string>", "attributes": {} } ], "event_tip": "<string>", "event_tags": [ { "tag": "<string>", "value": "<string>" } ] }, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "similarity": 123 } ], "gists": [ { "id": "<string>", "gist_data": { "content": "<string>" }, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "similarity": 123 } ] }, "errno": 0, "errmsg": "" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the user
Number of events to retrieve, default is 10
Max token size of returned events
Whether to return events with summaries
Successful Response
Response containing user events
Show child attributes
Error code, 0 means success
0
400
401
403
404
405
409
422
500
501
502
503
504
520
Error message, empty when success