Gravatar for dwebb@habaneroconsulting.com

Question by dwebb, Mar 2, 2015 5:21 PM

Example of using the Admin API

Hello -- is there any documentation or working examples of how to use the Admin API web service? I am experimenting (nothing serious yet) to see if I can programmatically work with the index -- say, adding a top result through code instead of through the UI.

I've created a C#.Net console app and added a service reference to http://localhost/adminservice?wsdl. However, any operation I call throws a "Null object reference" error.

There is very good documentation on using the Search API, including authenticating, setting up the certificates, executing queries, etc.

Is there anything like that for the Admin API?

Cheers David

1 Reply
Gravatar for vseguin@coveo.com

Answer by Vincent Séguin, Mar 2, 2015 5:28 PM

Hi David,

The AdminService is not really recognized as an 'open' API - there's no documentation for it unfortunately. It is intended to be used by Coveo internally.

If you want some examples, you can take a look at the Coveo.AdminServiceClient.dll, that could give you some hints.

Thank you

Ask a question