All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
createMessage | POST /contact | Send a new message |
showAllCategories | GET /contact/categories | Get a list of all contact categories |
createMessage(contactMessage)
Send a new message
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.ContactApi();
let contactMessage = new DigitaleKulturEvokeApiClientJs.ContactMessage(); // ContactMessage | Information about the message to be sent
apiInstance.createMessage(contactMessage, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
contactMessage | ContactMessage | Information about the message to be sent |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[ContactCategory] showAllCategories()
Get a list of all contact categories
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.ContactApi();
apiInstance.showAllCategories((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json