ડેવલપર્સ

Zinn® Reseller Toolkit ક્ષમતાઓ સંદર્ભ

Zinn® Reseller Toolkit તેની ક્રિયાઓને WordPress Abilities API સાથે નોંધે છે. સમાન ક્ષમતાઓ એ સાઇટના પોતાના સર્વર પર MCP સાધનો છે અને /wp-json/wp-abilities/v1 હેઠળ REST રૂટ્સ છે. આ પૃષ્ઠ પ્લગઇનની પોતાની રજિસ્ટ્રીમાંથી જનરેટ થાય છે.

વપરાશકર્તા માર્ગદર્શિકા: AI એપ્લિકેશન કનેક્ટ કરો

એન્ડપોઇન્ટ્સ

HTTP પર MCP (સ્ટ્રીમેબલ)

https://example.com/wp-json/zinn-reseller/v1/mcp

WP-CLI પર MCP (સ્ટાન્ડર્ડ ઇનપુટ અને આઉટપુટ)

wp mcp-adapter serve --server=zinn-reseller --user=<login>

REST: ક્ષમતાઓની સૂચિ બનાવો

/wp-json/wp-abilities/v1/abilities?category=zinn-reseller

REST: ક્ષમતા ચલાવો

/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-client
zinn-reseller-create-client
ક્લાયન્ટ બનાવો
તમારા હેઠળ ક્લાયન્ટ એકાઉન્ટ બનાવે છે (નામ; default_currency, ત્રણ અક્ષરનો કોડ). તેમની પહેલી સાઈટ પહેલાં તેમને કોઈ પ્લાન પર મૂકો.
મફત આવૃત્તિPOST …/abilities/zinn-reseller/create-client/runmanage_optionsname: string (જરૂરી), default_currency: string
zinn-reseller/create-site
zinn-reseller-create-site
ક્લાયન્ટ માટે સાઇટ બનાવો
તમારા ક્લાયન્ટ્સમાંથી એક માટે હોસ્ટેડ સાઇટ બનાવે છે (client_id, product_line, primary_domain). તમારી દુકાન તરફથી, ક્લાયન્ટની યોજના પર તે તમારા ખાતામાં શુલ્ક લેવામાં આવે છે.
મફત આવૃત્તિPOST …/abilities/zinn-reseller/create-site/runmanage_optionsclient_id: string (જરૂરી), product_line: string (જરૂરી), primary_domain: string (જરૂરી)
zinn-reseller/get-client-plan
zinn-reseller-get-client-plan
ક્લાયન્ટની યોજના વાંચો
ક્લાયન્ટ કયા પ્લાન પર છે અને તેના તમને (client_id) કેટલા ખર્ચ થાય છે તે પરત કરે છે.
મફત આવૃત્તિGET …/abilities/zinn-reseller/get-client-plan/runmanage_optionsclient_id: string (જરૂરી)
zinn-reseller/get-overview
zinn-reseller-get-overview
તમારું રેસેલર એકાઉન્ટ વાંચો
તમારા રિસેલર ખાતાની વિગતો એક જ વારમાં આપે છે: બ્રાન્ડ, પ્લાન, ક્લાયન્ટ અને સેવાઓની સંખ્યા, અને શું સેટઅપ કરેલું છે.
મફત આવૃત્તિGET …/abilities/zinn-reseller/get-overview/runmanage_optionsકોઈ નહીં
zinn-reseller/get-settings
zinn-reseller-get-settings
રીસેલર ટૂલકિટ સેટિંગ્સ વાંચો
આ પ્લગઇનની સેટિંગ્સ પરત કરે છે (API સરનામું, નવા ઓર્ડર્સ કઈ યોજનાનો ઉપયોગ કરે છે, કઈ સુવિધાઓ ચાલુ છે). API કી ક્યારેય પરત કરવામાં આવતી નથી, ફક્ત તે કે સાચવવામાં આવી છે કે નહીં.
મફત આવૃત્તિGET …/abilities/zinn-reseller/get-settings/runmanage_optionsકોઈ નહીં
zinn-reseller/list-clients
zinn-reseller-list-clients
તમારા ગ્રાહકોની સૂચિ બનાવો
તમારા ક્લાયન્ટ એકાઉન્ટ્સની યાદી આપે છે, એક સમયે એક પૃષ્ઠ (કર્સર, મર્યાદા).
મફત આવૃત્તિGET …/abilities/zinn-reseller/list-clients/runmanage_optionscursor: string, limit: integer
zinn-reseller/list-plans
zinn-reseller-list-plans
તમે વેચી શકો છો તે યોજનાઓની સૂચિ બનાવો
હોસ્ટિંગ પ્લાન અને તેમની કિંમતો સૂચિબદ્ધ કરે છે (product_line અને currency તેને મર્યાદિત કરે છે).
મફત આવૃત્તિGET …/abilities/zinn-reseller/list-plans/runmanage_optionsproduct_line: string, currency: string
zinn-reseller/list-sites
zinn-reseller-list-sites
તમારા ક્લાયન્ટ્સની સાઇટ્સની સૂચિ બનાવો
તમારા ક્લાયન્ટ્સ માટે તમે જે પણ જોગવાઈ કરી છે તે બધું સૂચિબદ્ધ કરે છે (client_id અને status તેને મર્યાદિત કરે છે), એક સમયે એક પૃષ્ઠ.
મફત આવૃત્તિGET …/abilities/zinn-reseller/list-sites/runmanage_optionscursor: string, limit: integer, client_id: string, status: string
zinn-reseller/set-client-plan
zinn-reseller-set-client-plan
ક્લાયન્ટને પ્લાન પર મૂકો
કોઈ ક્લાયન્ટને તમારી કોઈ એક યોજના પર મૂકે છે (client_id, plan_ code; interval: month અથવા year). તેમની પ્રથમ સાઇટ પહેલાં આ કરો.
મફત આવૃત્તિPOST …/abilities/zinn-reseller/set-client-plan/runmanage_optionsclient_id: string (જરૂરી), plan_code: string (જરૂરી), interval: month|year
zinn-reseller/suspend-site
zinn-reseller-suspend-site
ક્લાયન્ટની સાઇટ સસ્પેન્ડ કરો
ક્લાયન્ટની સાઇટને બિન-ચુકવણી હોલ્ડ પર મૂકે છે (site_id; કારણ: તમારી પોતાની નોંધ, ક્લાયન્ટને ક્યારેય બતાવવામાં આવતી નથી). જ્યાં સુધી સાઇટને અનસસ્પેન્ડ ન કરવામાં આવે ત્યાં સુધી તે સર્વ કરવાનું બંધ કરે છે.
મફત આવૃત્તિPOST …/abilities/zinn-reseller/suspend-site/runmanage_optionssite_id: string (જરૂરી), reason: string
zinn-reseller/unsuspend-site
zinn-reseller-unsuspend-site
ગ્રાહકની સાઇટ પરથી સસ્પેન્શન હટાવો
બિન-ચુકવણી હોલ્ડ દૂર કરે છે, જેથી સાઇટ ફરીથી કાર્યરત થાય (site_id).
મફત આવૃત્તિPOST …/abilities/zinn-reseller/unsuspend-site/runmanage_optionssite_id: string (જરૂરી)
zinn-reseller/update-settings
zinn-reseller-update-settings
રીસેલર ટૂલકિટ સેટિંગ્સ બદલો
તમે મોકલો છો તે સેટિંગ્સ બદલે છે (plan_code, enable_domain_search, enable_panel_link, enable_woocommerce) અને બાકીનું જાળવી રાખે છે. API કી અને સરનામું ફક્ત સ્ક્રીન પર બદલાય છે.
મફત આવૃત્તિPOST …/abilities/zinn-reseller/update-settings/runmanage_optionsplan_code: string, enable_domain_search: boolean, enable_panel_link: boolean, enable_woocommerce: boolean