ડેવલપર્સ

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

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

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

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