Skip to content

Yandex चैनल जोड़ना

पहले क्या चाहिए

ज़रूरतक्यों चाहिए
Yandex accountsign in और Yandex Disk authorize करने के लिए
Yandex OAuth appClient ID और Client Secret generate करने के लिए
आपका ImgBed domainOAuth redirect URI के लिए
उपलब्ध Yandex Disk storageअसली file storage location

Setup Steps

Step 1: Yandex OAuth App बनाएँ

  1. Yandex OAuth app creation page खोलें:
text
https://oauth.yandex.com/client/new
  1. अगर sign in पर redirect हो, तो पहले Yandex account से sign in करें।
  2. नया app बनाएँ।
  3. app को पहचानने लायक नाम दें, जैसे imgbed-yandex
  4. callback या redirect URL settings खोजें।
  5. डालें:
text
https://your-domain.com/api/oauth/yandex/callback

Step 2: Permissions confirm करें

मौजूदा ImgBed Yandex integration के लिए Yandex.Disk REST API के तहत ये चार permissions रखें:

PermissionPurpose
cloud_api:disk.app_folderImgBed को app folder में files store करने देता है
cloud_api:disk.readfiles और download links पढ़ता है
cloud_api:disk.writefiles upload, folders create और files delete करता है
Access to information about Yandex.Diskdisk quota और used space पढ़ता है

अगर Yandex ID API में ये permissions दिखें, तो वे optional हैं:

Permission TextRecommendation
Access to username, first name and surname, genderoptional
Access to email addressoptional

core upload, download, deletion और quota features मुख्य रूप से ऊपर की चार Yandex.Disk REST API permissions पर निर्भर हैं।

Yandex Disk permissions configure करें

Step 3: App Credentials copy करें

app बनने के बाद copy करें:

Yandex FieldImgBed Field
Client IDClient ID
Client SecretClient Secret

Client ID और Secret record करें

Step 4: Yandex channel भरें

Upload Settings में Yandex चुनें और भरें:

ImgBed Fieldक्या डालें
Channel nameपहचानने लायक नाम, जैसे Main Yandex
Client IDYandex app Client ID
Client SecretYandex app Client Secret
Refresh Tokenअभी खाली छोड़ें
Root directoryoptional। default imgbed

Channel config edit करें

Step 5: Refresh Token लें

  1. ImgBed में Get Token पर क्लिक करें।
  2. जिस Yandex account को connect करना है उससे sign in करें।
  3. authorization prompt approve करें।
  4. callback page Refresh Token दिखाएगा।
  5. इसे copy करें।
  6. ImgBed में लौटकर Refresh Token field में paste करें।

Authorization के बाद refresh token copy करें

Step 6: Channel save करें

सभी fields भरने के बाद channel save करें।

Quick Flow

text
Yandex OAuth Console खोलें
-> app बनाएँ
-> https://your-domain.com/api/oauth/yandex/callback जोड़ें
-> Yandex Disk permissions confirm करें
-> Client ID और Client Secret copy करें
-> ImgBed में Client ID / Client Secret भरें
-> Get Token क्लिक करें
-> callback page से Refresh Token copy करें
-> ImgBed में paste करके save करें

References

  1. Register a Yandex app: https://yandex.com/dev/id/doc/en/register-client
  2. Get an authorization code through URL: https://yandex.com/dev/id/doc/en/codes/code-url
  3. Yandex OAuth token endpoint: https://yandex.com/dev/id/doc/en/tokens/token

Released as user documentation for CloudFlare ImgBed.