本文簡要介紹 python 語言中 arcgis.apps.hub.events.EventManager.add
的用法。
用法:
add(event_properties)
返回:
添加成功後的事件。
為倡議添加事件。
Parameter
Description
event_properties
必需的字典。有關鍵和值,請參見下表。
參數event_properties的鍵:值字典選項
Key
Value
title
必需的字符串。事件名稱。
description
必需的字符串。事件說明。
initiaitve_id
必需的字符串。物品的名稱標簽。
venue
必需的字符串。活動的地點名稱。
address1
必需的字符串。場地的街道地址。
status
必需的字符串。事件的訪問。有效值為 private、planned、public、draft。
startDate
自 UNIX 紀元以來所需的事件開始日期(以毫秒為單位)。
endDate
自 UNIX 紀元以來所需的事件結束日期(以毫秒為單位)。
isAllDay
必需的布爾值。指示事件是否為全天事件。
capacity
可選整數。活動場地的出席人數。
address2
可選字符串。有關活動場地街道地址的更多信息。
onlineLocation
可選字符串。在線活動的網址或其他詳細信息。
organizers
每個組織者的姓名和電子郵件的可選鍵字典列表
name
和contact
。默認值為事件創建者的姓名、電子郵件、用戶名。sponsors
每個讚助商的姓名和聯係人的可選鍵字典列表
name
和contact
。例子:
# USAGE EXAMPLE: Add an event successfully event_properties = { 'title':'Test Event', 'description': 'Testing with python', 'initiativeId': '43f..', 'venue': 'Washington Monument', 'address1': '2 15th St NW, Washington, District of Columbia, 20024', 'status': 'planned', 'startDate': 1562803200, 'endDate': 1562889600, 'isAllDay': 1 } new_event = myhub.events.add(event_properties)
相關用法
- Python ArcGIS Event.update用法及代碼示例
- Python ArcGIS Event.delete用法及代碼示例
- Python ArcGIS Envelope.coordinates用法及代碼示例
- Python ArcGIS power用法及代碼示例
- Python ArcGIS APIKeyManager.get用法及代碼示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代碼示例
- Python ArcGIS ContentManager.unshare_items用法及代碼示例
- Python ArcGIS ImageryLayer.thumbnail用法及代碼示例
- Python ArcGIS FormFieldElement用法及代碼示例
- Python ArcGIS Geometry.true_centroid用法及代碼示例
- Python ArcGIS Site.delete用法及代碼示例
- Python ArcGIS GeoAccessor.bbox用法及代碼示例
- Python arcgis.apps.hub.Initiative.update用法及代碼示例
- Python ArcGIS generate_service_areas用法及代碼示例
- Python ArcGIS build_overview用法及代碼示例
- Python ArcGIS RunInterval用法及代碼示例
- Python ArcGIS describe_dataset用法及代碼示例
- Python ArcGIS acos用法及代碼示例
- Python ArcGIS Item.publish用法及代碼示例
- Python ArcGIS MapImageLayer.find用法及代碼示例
- Python ArcGIS Group.get_members用法及代碼示例
- Python ArcGIS Geometry.last_point用法及代碼示例
- Python ArcGIS Worker用法及代碼示例
- Python ArcGIS ContentManager.delete_folder用法及代碼示例
- Python ArcGIS train_classifier用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.apps.hub.events.EventManager.add。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。