Skip to content

Commit

Permalink
Fix some typo and add ngrok suggestion (#37)
Browse files Browse the repository at this point in the history
* mention the fact that redirect_uris need to match one of the OAuth allowed uris in kenar-panel

* fix the link to panel

* edit typo

* edit img source

* remove app_slug from fallback request params

* suggest ngrok for tunneling to https//:domain.app

---------

Co-authored-by: Mobin Pourabedini <[email protected]>
  • Loading branch information
Mobin-Pourabedini and Mobin Pourabedini authored May 18, 2024
1 parent cc48256 commit 76bd1b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chat/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ authorization: {{ Divar Identification Key }}
"post_token": "توکن آگهی",
"user_id": "شناسهٔ کسی که روی لینک کلیک کرده یا فرایند را شروع کرده",
"peer_id": "شناسهٔ طرف مقابل چت",
"Supplier": {
"supplier": {
"id": "شناسهٔ کاربر فروشنده (صاحب آگهی)"
},
"demand": {
Expand Down Expand Up @@ -87,7 +87,7 @@ authorization: {{ Divar Identification Key }}

<div align="center">

<img src="img/wire-puzzle.svg" height="156px"/>
<img src="../img/wire-puzzle.svg" height="156px"/>

</div>

Expand Down
7 changes: 4 additions & 3 deletions management/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@

```url
https://your.app.ir
?app_slug=<app-slug>
&post_token=<post-token>
?post_token=<post-token>
&return_url=<return-url>
&...
```
- پارامتر `app_slug` شناسهٔ برنامهٔ شماست.
- پارامتر `post_token` شناسهٔ آگهی مربوطه‌ست.
- با کمک این شناسه، می‌توانید [اطلاعات آگهی را از دیوار دریافت کنید][راهنما » اطلاعات آگهی].
- برای [دریافت اجازه‌های مربوط به این آگهی][راهنما » احراز باز]، از این شناسه استفاده کنید.
- برای استفاده از قابلیت‌های مرتبط با این آگهی (مثل [اضافه کردن افزونه به آگهی][راهنما » ساخت افزونه]) نیز از این شناسه استفاده کنید.
- پارامتر `return_url`، آدرسیست که می‌بایست کاربر را بعد از اتمام کار [به آن هدایت کنید][راهنما » بازگشت کاربر].
- اطلاعات تکمیلی در مورد آگهی نیز در پارامترها درج می‌شوند.

برای توسعه راحت‌تر اپلیکیشن خود میتوانید با استفاده از [ngrok][ngrok] نسخه localhost اپلیکیشن خود را به روی یک domain تونل کنید

<br>

---
Expand Down Expand Up @@ -179,6 +179,7 @@ authorization: {{ Divar Identification Key }}
[دیوار]: #تعامل-با-دیوار
[کاربرها]: #مدیریت-کاربرها
[لیست]: #لیست-پارامترها
[ngrok]: https://dashboard.ngrok.com/get-started/setup/linux

<br><br>

Expand Down

0 comments on commit 76bd1b4

Please sign in to comment.