ડેવલપર્સ
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 | ક્લાયન્ટ બનાવો તમારા હેઠળ ક્લાયન્ટ એકાઉન્ટ બનાવે છે (નામ; 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 | તમારા ગ્રાહકોની સૂચિ બનાવો તમારા ક્લાયન્ટ એકાઉન્ટ્સની યાદી આપે છે, એક સમયે એક પૃષ્ઠ (કર્સર, મર્યાદા). | મફત આવૃત્તિ | 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; કારણ: તમારી પોતાની નોંધ, ક્લાયન્ટને ક્યારેય બતાવવામાં આવતી નથી). જ્યાં સુધી સાઇટને અનસસ્પેન્ડ ન કરવામાં આવે ત્યાં સુધી તે સર્વ કરવાનું બંધ કરે છે. | મફત આવૃત્તિ | 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 | રીસેલર ટૂલકિટ સેટિંગ્સ બદલો તમે મોકલો છો તે સેટિંગ્સ બદલે છે (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 |