-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
1 changed file
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# دریافت اطلاعات آگهی | ||
|
||
| Get Post | | | ||
|--------------|------------| | ||
| Permissions | GET_POST | | ||
| Default Rate | 10K R/WEEK | | ||
|
||
برای دریافت اطلاعات یک آگهی در دیوار تنها با استفاده از توکن میتوانید از این ای پی آی استفاده کنید | ||
|
||
درخواست | ||
|
||
```http request | ||
POST https://api.divar.ir/v1/open-platform/finder/post/{{token}} | ||
x-api-key: {{apikey}} | ||
``` | ||
|
||
پاسخ | ||
|
||
شامل اطلاعات یکسانی از پست در بخش جستجوی پست میباشد | ||
|
||
```http request | ||
{ | ||
"token": "AZir15UU", | ||
"category": "mobile-phones", | ||
"city": "tehran", | ||
"district": "nazi-abad", | ||
"data": { | ||
"brand_model": "samsung galaxy j2", | ||
"color": "gold", | ||
"description": "بدون هیچ ایرادی سالم سالم \nبهمراه کارتن شارژر", | ||
"expire_days": 31, | ||
"images": [ | ||
"https://s101.divarcdn.com/static/live-post-image/127de243-e80d-4896-a05c-41f322ad2cfd.jpg", | ||
"https://s101.divarcdn.com/static/live-post-image/68bb821b-7a61-4270-b9a8-a03cf53ae4eb.jpg", | ||
"https://s101.divarcdn.com/static/live-post-image/317a1376-b2c1-4a39-a4a5-2a4b6ea23743.jpg" | ||
], | ||
"internal_storage": "8GB", | ||
"new_price": 1100000, | ||
"originality": "original", | ||
"prefilled_title": "سامسونگ Galaxy J2 با حافظهٔ ۸ گیگابایت", | ||
"price": { | ||
"mode": "مقطوع", | ||
"value": 1100000 | ||
}, | ||
"ram_memory": "1GB", | ||
"sim_card_slot": "2", | ||
"status": "used", | ||
"title": "سامسونگ Galaxy J2 با حافظهٔ ۸ گیگابایت" | ||
} | ||
} | ||
``` |