Filtering Events API | Python

回答済み
新規投稿

コメント

1件のコメント

  • Artur Jankowski

    Hi Kishan Patel

    Filtering events by `event_types` is only available for admin logs.
    So to do that you need to use one of these two methods:

    events = client.events().get_admin_events(event_types=['ITEM_CREATE'])

    or

    events = client.events().get_admin_events_streaming(event_types=['ITEM_CREATE'])


    Please take a look into events documentation on python SDK for more details here

    The documentation that you pointed is related to the newest version of our SDK which is v.2.14.0.
    And in that version get_admin_events_streaming method was added.

    So I suppose you are using the older version and that's why you have this following issue:

    AttributeError: 'Events' object has no attribute 'get_admin_events_streaming'


    If you want to use this method, please update version of our SDK with the following command:

    pip install boxsdk --upgrade

     

    Hope this helps!

    0
    コメントアクション Permalink

サインインしてコメントを残してください。