Linework Developers
HI
एक्सेस पाएँ

कॉन्सेप्ट्स

Scopes

Scopes तय करते हैं कि एक key क्या कर सकती है। इन्हें key बनाते समय चुनें; हर key को सिर्फ़ उतना ही दें जितना उसे चाहिए।

किसी ऐसे endpoint पर request, जिसका scope key में नहीं है, 403 INSUFFICIENT_SCOPE के साथ fail होती है। किसी मौजूदा key में scopes नहीं जोड़े जा सकते: एक नई key बनाएँ और पुरानी को revoke करें।

उपलब्ध नहीं: payments, wallet, tokens, transfers और अकाउंट सेटिंग्स। कोई भी scope इन तक एक्सेस नहीं देता।

सभी scopes#

Scopeअनुमति
profile:readअपनी प्रोफ़ाइल और दूसरे यूज़र्स की पब्लिक प्रोफ़ाइल पढ़ना।
posts:readपोस्ट पढ़ना (आपकी और वे जो आप ऐप में देख सकते हैं) और उनके कमेंट्स।
posts:writeमीडिया अपलोड करना, अपनी पोस्ट पब्लिश, एडिट और डिलीट करना।
comments:writeकमेंट्स लिखना और अपने कमेंट्स (या अपनी पोस्ट पर आए कमेंट्स) डिलीट करना।
likes:writeपोस्ट को लाइक और अनलाइक करना।
follows:writeयूज़र्स को फ़ॉलो और अनफ़ॉलो करना।
stories:writeस्टोरीज़ पब्लिश करना।
store:readअपना Bloop स्टोर और उसके प्रोडक्ट्स पढ़ना।
store:writeअपना स्टोर एडिट करना, प्रोडक्ट्स बनाना, अपडेट और डिलीट करना, स्टॉक अपडेट करना।
orders:readआपके स्टोर को मिले ऑर्डर पढ़ना।
orders:writeऑर्डर को शिप्ड मार्क करना।
chat:readअपनी बातचीत और उनके मैसेज पढ़ना।
chat:writeमैसेज भेजना (anti-spam नियम के साथ)।

Scope के अनुसार endpoints#

सभी paths https://api.linework.app/open/v1 के सापेक्ष हैं।

EndpointScope
GET /meprofile:read
GET /users/{id}profile:read
GET /users/by-username/{username}profile:read
GET /me/postsposts:read
GET /users/{id}/postsposts:read
GET /posts/{id}posts:read
GET /posts/{id}/commentsposts:read
POST /mediaposts:write, stories:write या store:write
POST /postsposts:write
PATCH /posts/{id}posts:write
DELETE /posts/{id}posts:write
POST /posts/{id}/commentscomments:write
DELETE /comments/{id}comments:write
POST DELETE /posts/{id}/likelikes:write
POST DELETE /users/{id}/followfollows:write
POST /storiesstories:write
GET /storestore:read
POST PATCH /storestore:write
GET /store/productsstore:read
POST /store/productsstore:write
PATCH DELETE /store/products/{id}store:write
PATCH /store/products/{id}/stockstore:write
GET /store/ordersorders:read
GET /store/orders/{id}orders:read
POST /store/orders/{id}/shiporders:write
GET /conversationschat:read
GET /conversations/{id}/messageschat:read
POST /conversations/{id}/messageschat:write
POST /messageschat:write

API Reference ही अंतिम स्रोत है: हर operation में उसका ज़रूरी scope दिया गया है।

सुझाए गए सेट#

IntegrationScopes
पब्लिशिंग botprofile:read posts:read posts:write stories:write
कम्युनिटी मैनेजरposts:read comments:write likes:write
स्टोर सिंकstore:read store:write orders:read orders:write
सपोर्ट चैट botchat:read chat:write (+ ऑर्डर देखने के लिए orders:read)