ડેવલપર્સ
Zinn® Reseller Toolkit ક્ષમતાઓ સંદર્ભ
Zinn® Reseller Toolkit તેની ક્રિયાઓને WordPress Abilities API સાથે નોંધે છે. સમાન ક્ષમતાઓ એ સાઇટના પોતાના સર્વર પર MCP સાધનો છે અને /wp-json/wp-abilities/v1 હેઠળ REST રૂટ્સ છે. આ પૃષ્ઠ પ્લગઇનની પોતાની રજિસ્ટ્રીમાંથી જનરેટ થાય છે.
એન્ડપોઇન્ટ્સ
HTTP પર MCP (સ્ટ્રીમેબલ)
https://example.com/wp-json/zinn-reseller/v1/mcpWP-CLI પર MCP (સ્ટાન્ડર્ડ ઇનપુટ અને આઉટપુટ)
wp mcp-adapter serve --server=zinn-reseller --user=<login>REST: ક્ષમતાઓની સૂચિ બનાવો
/wp-json/wp-abilities/v1/abilities?category=zinn-resellerREST: ક્ષમતા ચલાવો
/wp-json/wp-abilities/v1/abilities/<name>/runપ્રમાણીકરણ અને પરવાનગીઓ
HTTP વિનંતીઓ WordPress એપ્લિકેશન પાસવર્ડ (HTTP Basic) સાથે પ્રમાણીકૃત થાય છે. MCP સર્વર સાથે કનેક્ટ થવા માટે નીચે દર્શાવેલ ક્ષમતાની જરૂર છે; દરેક ક્ષમતા પછી પ્રતિ ઑબ્જેક્ટ, તેની પોતાની પરવાનગી તપાસે છે. માત્ર-વાંચી શકાય તેવી ક્ષમતાઓ GET સાથે અને તેમનું ઇનપુટ ક્વેરી સ્ટ્રિંગમાં ચાલે છે; અન્ય ક્ષમતાઓ POST અને JSON બોડી {"input": {…}} સાથે ચાલે છે.
ઉદાહરણો
# REST: ક્ષમતા ચલાવો
curl -u your-username:your-application-password \
"https://example.com/wp-json/wp-abilities/v1/abilities/zinn-reseller/get-overview/run"# MCP (JSON-RPC over HTTP, after "initialize")
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"zinn-reseller-get-overview","arguments":{}}}બધી ક્ષમતાઓ
પ્લગઇનના abilities.json માંથી જનરેટ થયેલ છે, જે પોતે ચાલી રહેલી સાઇટ પરથી જનરેટ થાય છે; જ્યારે બંને અસંમત હોય ત્યારે ટેસ્ટ નિષ્ફળ જાય છે.
| ક્ષમતા | આ શું કરે છે | આવૃત્તિ | રેસ્ટ | પરવાનગી | પરિમાણો |
|---|---|---|---|---|---|
zinn-reseller/create-clientzinn-reseller-create-client | ક્લાયંટ બનાવો તમારા ખાતા હેઠળ ગ્રાહક ખાતું બનાવે છે (name; default_currency, ત્રણ અક્ષરોનો કોડ). તેમની પ્રથમ સાઇટ પહેલાં તેમને કોઈ યોજના હેઠળ મૂકો. | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/create-client/run | manage_options | name: string (જરૂરી), default_currency: string |
zinn-reseller/create-sitezinn-reseller-create-site | ક્લાયન્ટ માટે સાઇટ બનાવો તમારા ગ્રાહકોમાંથી એક માટે હોસ્ટ કરેલી સાઇટ બનાવે છે (client_id, product_line, primary_domain). તે તમારા સ્ટોરમાંથી હોય તે રીતે ગ્રાહકના પ્લાન અનુસાર તમારા ખાતામાં બિલ કરવામાં આવે છે. | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/create-site/run | manage_options | client_id: string (જરૂરી), product_line: string (જરૂરી), primary_domain: string (જરૂરી) |
zinn-reseller/get-client-planzinn-reseller-get-client-plan | ક્લાયંટનો પ્લાન વાંચો ક્લાયન્ટ કયા પ્લાન પર છે અને તેનો તમને કેટલો ખર્ચ થાય છે તે આપે છે (client_id). | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/get-client-plan/run | manage_options | client_id: string (જરૂરી) |
zinn-reseller/get-overviewzinn-reseller-get-overview | તમારું રિસેલર એકાઉન્ટ વાંચો તમારા પુનર્વિક્રેતા ખાતાને એક જ વાચનમાં પરત કરે છે: બ્રાન્ડ, યોજનાઓ, ગ્રાહકો અને સેવાઓની સંખ્યા, અને શું સેટ અપ થયેલ છે. | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/get-overview/run | manage_options | કોઈ નહીં |
zinn-reseller/get-settingszinn-reseller-get-settings | રીસેલર ટૂલકીટ સેટિંગ્સ વાંચો આ પ્લગઇનના સેટિંગ્સ (API સરનામું, નવા ઓર્ડર્સ જે પ્લાન વાપરે છે તે, કયા ફીચર્સ ચાલુ છે) પાછા આપે છે. API કી ક્યારેય પાછી આપવામાં આવતી નથી, ફક્ત તે સાચવેલી છે કે નહીં તે જ જણાવવામાં આવે છે. | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/get-settings/run | manage_options | કોઈ નહીં |
zinn-reseller/list-clientszinn-reseller-list-clients | તમારા ગ્રાહકોની સૂચિ બનાવો તમારા ક્લાયંટ એકાઉન્ટ્સની સૂચિ એક સમયે એક પૃષ્ઠ બનાવે છે (cursor, limit). | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/list-clients/run | manage_options | cursor: string, limit: integer |
zinn-reseller/list-planszinn-reseller-list-plans | તમે વેચી શકો તેવા પ્લાનની યાદી આપો હોસ્ટિંગ પ્લાન અને તેના ભાવની સૂચિ આપે છે (product_line અને currency તેને મર્યાદિત કરે છે). | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/list-plans/run | manage_options | product_line: string, currency: string |
zinn-reseller/list-siteszinn-reseller-list-sites | તમારા ગ્રાહકોની સાઇટ્સની સૂચિ બનાવો તમે તમારા ગ્રાહકો માટે જે કંઈ પણ પ્રદાન કર્યું છે તેની સૂચિ બનાવે છે (client_id અને status તેને મર્યાદિત કરે છે), એક સમયે એક પૃષ્ઠ. | મફત આવૃત્તિ | GET …/abilities/zinn-reseller/list-sites/run | manage_options | cursor: string, limit: integer, client_id: string, status: string |
zinn-reseller/set-client-planzinn-reseller-set-client-plan | ક્લાયન્ટને કોઈ પ્લાન સોંપો તમારી યોજનાઓમાંથી એક પર ગ્રાહકને મૂકે છે (client_id, plan_code; interval: month અથવા year). તેમની પ્રથમ સાઇટ પહેલાં આ કરો. | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/set-client-plan/run | manage_options | client_id: string (જરૂરી), plan_code: string (જરૂરી), interval: month|year |
zinn-reseller/suspend-sitezinn-reseller-suspend-site | ક્લાયંટની સાઇટ સ્થગિત કરો ગ્રાહકની સાઇટને બિન-ચુકવણી હોલ્ડ પર મૂકે છે (site_id; reason: તમારી પોતાની નોંધ, ગ્રાહકને ક્યારેય બતાવવામાં આવતી નથી). સાઇટનું સસ્પેન્શન ન હટાવાય ત્યાં સુધી તે સેવા આપવાનું બંધ કરે છે. | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/suspend-site/run | manage_options | site_id: string (જરૂરી), reason: string |
zinn-reseller/unsuspend-sitezinn-reseller-unsuspend-site | ક્લાયન્ટની સાઇટ પરથી સસ્પેન્શન હટાવો બિન-ચુકવણીને કારણે મૂકેલો પ્રતિબંધ હટાવે છે, જેથી સાઇટ ફરીથી શરૂ થઈ શકે (site_id). | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/unsuspend-site/run | manage_options | site_id: string (જરૂરી) |
zinn-reseller/update-settingszinn-reseller-update-settings | Reseller Toolkit સેટિંગ્સ બદલો તમે મોકલો છો તે સેટિંગ્સ (plan_code, enable_domain_search, enable_panel_link, enable_woocommerce) બદલે છે અને બાકીના સાચવી રાખે છે. API કી અને સરનામું ફક્ત સ્ક્રીન પર જ બદલાય છે. | મફત આવૃત્તિ | POST …/abilities/zinn-reseller/update-settings/run | manage_options | plan_code: string, enable_domain_search: boolean, enable_panel_link: boolean, enable_woocommerce: boolean |