Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LegendTitleRow #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Divar-Kenar.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"LEGEND_TITLE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.LegendTitleRowData\",\n \"title\": \"کارشناسی دمپایی\",\n \"subtitle\": \"کارشناسی\",\n \"hasDivider\": true\n }\n },\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"فنی\",\n \"percentage_score\": 80,\n \"score_color\": \"SUCCESS_PRIMARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"HISTORY\",\n \"icon_color\": \"SUCCESS_PRIMARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com/\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com/\"\n }\n }\n }\n },\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"قدرت در دست مادر ایرانی\",\n \"percentage_score\": 100,\n \"score_color\": \"ICON_PRIMARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"CAR_ENGINE\",\n \"icon_color\": \"ICON_PRIMARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com\"\n }\n }\n }\n },\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"بدنه\",\n \"percentage_score\": 35,\n \"score_color\": \"WARNING_SECONDARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\",\n \"icon_color\": \"WARNING_SECONDARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com\"\n }\n }\n }\n },\n {\n \"widget_type\": \"WIDE_BUTTON_BAR\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.WideButtonBarWidgetData\",\n \"style\": \"SECONDARY\",\n \"button\": {\n \"action\": {\n \"type\": \"OPEN_WEB_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.OpenWebPagePayload\",\n \"link\": \"https://google.com\"\n }\n },\n \"title\": \"به سمت الودمپایی\",\n \"disable\": false\n }\n }\n }\n ]\n }\n}",
"raw": "{\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"فنی\",\n \"percentage_score\": 80,\n \"score_color\": \"SUCCESS_PRIMARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"HISTORY\",\n \"icon_color\": \"SUCCESS_PRIMARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com/\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com/\"\n }\n }\n }\n },\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"قدرت در دست مادر ایرانی\",\n \"percentage_score\": 100,\n \"score_color\": \"ICON_PRIMARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"CAR_ENGINE\",\n \"icon_color\": \"ICON_PRIMARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com\"\n }\n }\n }\n },\n {\n \"widget_type\": \"SCORE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.ScoreRowData\",\n \"title\": \"بدنه\",\n \"percentage_score\": 35,\n \"score_color\": \"WARNING_SECONDARY\",\n \"hasDivider\": true,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\",\n \"icon_color\": \"WARNING_SECONDARY\"\n },\n \"action\": {\n \"type\": \"LOAD_WEB_VIEW_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.LoadWebViewPagePayload\",\n \"url\": \"https://google.com\"\n }\n }\n }\n },\n {\n \"widget_type\": \"WIDE_BUTTON_BAR\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.WideButtonBarWidgetData\",\n \"style\": \"SECONDARY\",\n \"button\": {\n \"action\": {\n \"type\": \"OPEN_WEB_PAGE\",\n \"fallback_link\": \"https://google.com\",\n \"payload\": {\n \"@type\": \"type.googleapis.com/widgets.OpenWebPagePayload\",\n \"link\": \"https://google.com\"\n }\n },\n \"title\": \"به سمت الودمپایی\",\n \"disable\": false\n }\n }\n }\n ]\n }\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -716,7 +716,7 @@
}
],
"cookie": [],
"body": "{\n \"addons\": [\n {\n \"meta_data\": {\n \"id\": \"29988609\",\n \"app\": {\n \"slug\": \"UID\",\n \"service_type\": \"REPORT_VERIFICATION\"\n },\n \"created_at\": \"2024-08-06T15:29:16.246004Z\",\n \"last_modified\": \"2024-08-06T15:29:16.246004Z\",\n \"status\": \"ACTIVE\"\n },\n \"token\": \"gZiGQyjY\",\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"LEGEND_TITLE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.LegendTitleRowData\",\n \"title\": \"یوآیدی\",\n \"subtitle\": \"اپراتور اول احراز هویت ایران\",\n \"has_divider\": true,\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/uX-QF_O82MeZvpE4chmdIQ.jpg\"\n }\n },\n {\n \"widget_type\": \"EVENT_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.EventRowData\",\n \"title\": \"آرش عبادتي فرح آورنوبيجاري\",\n \"subtitle\": \"تایید احراز هویت\",\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/lIyGphmQSsqcZ1aISrDvKQ.jpg\",\n \"label\": \"هوش مصنوعی\",\n \"has_divider\": true,\n \"padded\": true,\n \"counter\": 1,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\"\n }\n }\n }\n ]\n },\n \"score\": \"1001001\",\n \"secondary_links\": {\n \"secondary_linkages\": [\n {\n \"position\": \"POST_SPEC_TAIL\",\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"LEGEND_TITLE_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.LegendTitleRowData\",\n \"title\": \"یوآیدی\",\n \"subtitle\": \"اپراتور اول احراز هویت ایران\",\n \"has_divider\": true,\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/uX-QF_O82MeZvpE4chmdIQ.jpg\"\n }\n },\n {\n \"widget_type\": \"EVENT_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.EventRowData\",\n \"title\": \"آرش عبادتي فرح آورنوبيجاري\",\n \"subtitle\": \"تایید احراز هویت\",\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/lIyGphmQSsqcZ1aISrDvKQ.jpg\",\n \"label\": \"هوش مصنوعی\",\n \"has_divider\": true,\n \"padded\": true,\n \"counter\": 1,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"
"body": "{\n \"addons\": [\n {\n \"meta_data\": {\n \"id\": \"29988609\",\n \"app\": {\n \"slug\": \"UID\",\n \"service_type\": \"REPORT_VERIFICATION\"\n },\n \"created_at\": \"2024-08-06T15:29:16.246004Z\",\n \"last_modified\": \"2024-08-06T15:29:16.246004Z\",\n \"status\": \"ACTIVE\"\n },\n \"token\": \"gZiGQyjY\",\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"EVENT_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.EventRowData\",\n \"title\": \"آرش عبادتي فرح آورنوبيجاري\",\n \"subtitle\": \"تایید احراز هویت\",\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/lIyGphmQSsqcZ1aISrDvKQ.jpg\",\n \"label\": \"هوش مصنوعی\",\n \"has_divider\": true,\n \"padded\": true,\n \"counter\": 1,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\"\n }\n }\n }\n ]\n },\n \"score\": \"1001001\",\n \"secondary_links\": {\n \"secondary_linkages\": [\n {\n \"position\": \"POST_SPEC_TAIL\",\n \"widgets\": {\n \"widget_list\": [\n {\n \"widget_type\": \"EVENT_ROW\",\n \"data\": {\n \"@type\": \"type.googleapis.com/widgets.EventRowData\",\n \"title\": \"آرش عبادتي فرح آورنوبيجاري\",\n \"subtitle\": \"تایید احراز هویت\",\n \"image_url\": \"https://s100.divarcdn.com/static/images/open-platform/lIyGphmQSsqcZ1aISrDvKQ.jpg\",\n \"label\": \"هوش مصنوعی\",\n \"has_divider\": true,\n \"padded\": true,\n \"counter\": 1,\n \"icon\": {\n \"icon_name\": \"CAR_HYDRAULICS\"\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"
}
]
}
Expand Down Expand Up @@ -2176,7 +2176,10 @@
]
},
"method": "OAUTH",
"header": []
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
Expand All @@ -2198,23 +2201,24 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"user_id\": \"{{user_id}}\",\n \"post_token\": \"{{post_token}}\",\n \"peer_id\": \"{{peer_id}}\",\n \"type\": \"TEXT\",\n \"message\": \"Hello World!\",\n \"sender_btn\": {\n \"action\": \"LINK\",\n \"data\": {\n \"icon_name\": \"نام آیکون مورد نظر برای این دکمه\",\n \"extra_data\": {\n \"your_custom_key\":\"اطلاعاتی که در ادامه هنگام کلیک روی دکمه نیاز داریم\"\n },\n \"caption\": \"متن دکمهٔ زیر پیام برای طرف فرستنده\"\n }\n }\n}\n",
"raw": "{\n \"type\": \"TEXT\",\n \"message\": \"متن پیام\",\n \"sender_buttons\": {\n \"rows\": [\n {\n \"buttons\": [\n {\n \"action\": {\n \"open_direct_link\": \"https://google.com\"\n },\n \"icon_name\": \"نام آیکون\",\n \"caption\": \"متن دکمه\"\n },\n {\n \"action\": {\n \"open_server_link\": {\n \"data\": {\n \"my_key_1\": \"value\",\n \"my_key_2\": \"value2\"\n }\n }\n },\n \"icon_name\": \"نام آیکون\",\n \"caption\": \"متن دکمه\"\n }\n ]\n }\n ]\n },\n \"receiver_buttons\": {\n \"rows\": [\n {\n \"buttons\": [\n {\n \"action\": {\n \"open_direct_link\": \"https://google.com\"\n },\n \"icon_name\": \"نام آیکون\",\n \"caption\": \"متن دکمه\"\n },\n {\n \"action\": {\n \"open_server_link\": {\n \"data\": {\n \"my_key_1\": \"value\",\n \"my_key_2\": \"value2\"\n }\n }\n },\n \"icon_name\": \"نام آیکون\",\n \"caption\": \"متن دکمه\"\n }\n ]\n }\n ]\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/v2/open-platform/chat/conversation",
"raw": "{{host}}/v2/open-platform/conversations/{{conversation_id}}/messages",
"host": [
"{{host}}"
],
"path": [
"v2",
"open-platform",
"chat",
"conversation"
"conversations",
"{{conversation_id}}",
"messages"
]
}
},
Expand Down Expand Up @@ -2343,15 +2347,14 @@
}
},
"url": {
"raw": "https://api.divar.ir//v1/open-platform/verifications/user/{{phone}}",
"raw": "https://api.divar.ir/v1/open-platform/verifications/user/{{phone}}",
"protocol": "https",
"host": [
"api",
"divar",
"ir"
],
"path": [
"",
"v1",
"open-platform",
"verifications",
Expand Down
10 changes: 4 additions & 6 deletions addons/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ x-access-token: {{access_token}}
"widgets": {
"widget_list": [
{
"widget_type": "LEGEND_TITLE_ROW",
"widget_type": "TITLE_ROW",
"data": {
"@type": "type.googleapis.com/widgets.LegendTitleRowData",
"title": "تایتل اصلی افزونه",
"subtitle": "سابتایتل",
"has_divider": true,
"image_url": "logo"
"@type": "type.googleapis.com/widgets.TitleRowData",
"text": "این یک تایتل رو هست",
"has_divider": true
}
}
]
Expand Down
Loading