@@ -6,6 +6,7 @@ Method | HTTP request | Description
66------------- | ------------- | -------------
77[ ** add_client** ] ( DefaultApi.md#add_client ) | ** POST** /api.php?action= ; AddClient | Add a new client
88[ ** add_order** ] ( DefaultApi.md#add_order ) | ** POST** /api.php?action= ; AddOrder | Create a new order
9+ [ ** get_clients** ] ( DefaultApi.md#get_clients ) | ** POST** /api.php?action= ; GetClients | Get clients
910[ ** update_client** ] ( DefaultApi.md#update_client ) | ** POST** /api.php?action= ; UpdateClient | Update client details
1011
1112
@@ -299,6 +300,93 @@ No authorization required
299300
300301[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
301302
303+ # ** get_clients**
304+ > GetClientsResponse get_clients(username, password, accesskey=accesskey, responsetype=responsetype, limitstart=limitstart, limitnum=limitnum, sorting=sorting, status=status, search=search, orderby=orderby)
305+
306+ Get clients
307+
308+ Obtain the clients that match passed criteria
309+
310+ ### Example
311+
312+
313+ ``` python
314+ import whmcs_client
315+ from whmcs_client.models.get_clients_response import GetClientsResponse
316+ from whmcs_client.rest import ApiException
317+ from pprint import pprint
318+
319+ # Defining the host is optional and defaults to https://your-whmcs-instance.com/includes
320+ # See configuration.py for a list of all supported configuration parameters.
321+ configuration = whmcs_client.Configuration(
322+ host = " https://your-whmcs-instance.com/includes"
323+ )
324+
325+
326+ # Enter a context with an instance of the API client
327+ with whmcs_client.ApiClient(configuration) as api_client:
328+ # Create an instance of the API class
329+ api_instance = whmcs_client.DefaultApi(api_client)
330+ username = ' username_example' # str | Admin username/API identifier
331+ password = ' password_example' # str | Admin password/API secret
332+ accesskey = ' accesskey_example' # str | Optional API access key (optional)
333+ responsetype = json # str | Response format (optional) (default to json)
334+ limitstart = 0 # int | The offset for the returned log data (optional) (default to 0)
335+ limitnum = 25 # int | The number of records to return (optional) (default to 25)
336+ sorting = ASC # str | The direction to sort the results. ASC or DESC. (optional) (default to ASC)
337+ status = ' status_example' # str | Optional desired Client Status. 'Active', 'Inactive', or 'Closed'. (optional)
338+ search = ' search_example' # str | The search term to look for at the start of email, firstname, lastname, fullname or companyname (optional)
339+ orderby = ' orderby_example' # str | The column to order by. id, firstname, lastname, companyname, email, groupid, datecreated, status (optional)
340+
341+ try :
342+ # Get clients
343+ api_response = api_instance.get_clients(username, password, accesskey = accesskey, responsetype = responsetype, limitstart = limitstart, limitnum = limitnum, sorting = sorting, status = status, search = search, orderby = orderby)
344+ print (" The response of DefaultApi->get_clients:\n " )
345+ pprint(api_response)
346+ except Exception as e:
347+ print (" Exception when calling DefaultApi->get_clients: %s \n " % e)
348+ ```
349+
350+
351+
352+ ### Parameters
353+
354+
355+ Name | Type | Description | Notes
356+ ------------- | ------------- | ------------- | -------------
357+ ** username** | ** str** | Admin username/API identifier |
358+ ** password** | ** str** | Admin password/API secret |
359+ ** accesskey** | ** str** | Optional API access key | [ optional]
360+ ** responsetype** | ** str** | Response format | [ optional] [ default to json]
361+ ** limitstart** | ** int** | The offset for the returned log data | [ optional] [ default to 0]
362+ ** limitnum** | ** int** | The number of records to return | [ optional] [ default to 25]
363+ ** sorting** | ** str** | The direction to sort the results. ASC or DESC. | [ optional] [ default to ASC]
364+ ** status** | ** str** | Optional desired Client Status. ' ; Active' ; , ' ; Inactive' ; , or ' ; Closed' ; . | [ optional]
365+ ** search** | ** str** | The search term to look for at the start of email, firstname, lastname, fullname or companyname | [ optional]
366+ ** orderby** | ** str** | The column to order by. id, firstname, lastname, companyname, email, groupid, datecreated, status | [ optional]
367+
368+ ### Return type
369+
370+ [ ** GetClientsResponse** ] ( GetClientsResponse.md )
371+
372+ ### Authorization
373+
374+ No authorization required
375+
376+ ### HTTP request headers
377+
378+ - ** Content-Type** : application/x-www-form-urlencoded
379+ - ** Accept** : application/json
380+
381+ ### HTTP response details
382+
383+ | Status code | Description | Response headers |
384+ | -------------| -------------| ------------------|
385+ ** 200** | Clients retrieved successfully | - |
386+ ** 0** | Error response | - |
387+
388+ [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
389+
302390# ** update_client**
303391> UpdateClientResponse update_client(username, password, clientid, accesskey=accesskey, responsetype=responsetype, clientemail=clientemail, firstname=firstname, lastname=lastname, companyname=companyname, email=email, address1=address1, address2=address2, city=city, state=state, postcode=postcode, country=country, phonenumber=phonenumber, tax_id=tax_id, password2=password2, securityqid=securityqid, securityqans=securityqans, currency=currency, groupid=groupid, customfields=customfields, language=language, clientip=clientip, notes=notes, status=status, paymentmethod=paymentmethod, email_preferences_general=email_preferences_general, email_preferences_product=email_preferences_product, email_preferences_domain=email_preferences_domain, email_preferences_invoice=email_preferences_invoice, email_preferences_support=email_preferences_support, email_preferences_affiliate=email_preferences_affiliate, clearcreditcard=clearcreditcard, latefeeoveride=latefeeoveride, overideduenotices=overideduenotices, taxexempt=taxexempt, separateinvoices=separateinvoices, disableautocc=disableautocc, overrideautoclose=overrideautoclose)
304392
0 commit comments