-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830422c
commit 0a46782
Showing
9 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
!.vscode/*.code-snippets | ||
|
||
.history/ | ||
*.vsix | ||
*~ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
### الصاق افزونه تایید شده | ||
|
||
| CREATE APPROVED ADDON | | | ||
|-----------------------|---------------------| | ||
| API Permissions | ADD_ON_CREATE | | ||
| OAuth Permissions | ADDON_USER_APPROVED | | ||
|
||
با استفاده از access_token می توانید شماره همراه کاربر احراز شده را دریافت کنید. کافیست رکوئست زیر را بزنید. | ||
```http request | ||
POST https://api.divar.ir/v1/open-platform/users | ||
Content-Type: application/json | ||
x-api-key: {{apikey}} | ||
x-access-token: {{access_token}} | ||
{ | ||
"widgets": { | ||
"widget_list": [ | ||
{ | ||
"widget_type": "LEGEND_TITLE_ROW", | ||
"data": { | ||
"@type": "type.googleapis.com/widgets.LegendTitleRowData", | ||
"title": "کارشناسی دمپایی", | ||
"subtitle": "کارشناسی", | ||
"has_divider": true, | ||
"image_url": "logo" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
ریسپانس | ||
|
||
```json | ||
{ | ||
"id": "123" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### گرفتن اطلاعات کاربر | ||
|
||
|
||
| GET USER | | | ||
|-------------------|---------------| | ||
| API Permissions | USER_RETRIEVE | | ||
| OAuth Permissions | USER_PHONE | | ||
|
||
با استفاده از access_token می توانید شماره همراه کاربر احراز شده را دریافت کنید. کافیست رکوئست زیر را بزنید. | ||
```http request | ||
POST https://api.divar.ir/v1/open-platform/users | ||
Content-Type: application/json | ||
x-api-key: {{apikey}} | ||
x-access-token: {{access_token}} | ||
``` | ||
نمونه پاسخ نیز مانند زیر است. | ||
```json5 | ||
{ | ||
"phone_numbers": ["09990000000"] | ||
} | ||
``` |