... | ... | @@ -42,8 +42,6 @@ VADL API definitions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### API Endpoint
|
|
|
|
|
|
API defined through API Designer can be access through the [restapi](https://help.vtiger.com/article/147111249-Rest-API-Manual) endpoint as follows:
|
... | ... | @@ -290,7 +288,7 @@ You can update and create in one single api |
|
|
```
|
|
|
|
|
|
|
|
|
#### Invoke HTTP Rest API
|
|
|
#### Invoke HTTP Rest API with bearer token
|
|
|
|
|
|
Using bearer token invoke Google Sheet API
|
|
|
|
... | ... | @@ -308,6 +306,24 @@ Using bearer token invoke Google Sheet API |
|
|
```
|
|
|
|
|
|
|
|
|
#### Invoke HTTP Rest API with basic auth tokens
|
|
|
|
|
|
Use basic authentication to invoke custom app's api. Below is one example for connecting atlassian api.
|
|
|
You can directly give email and api key in username and password or if you want to take these details from user and store in vtiger then access them using VTAP [data api's](https://extend.vtiger.com/vtap/documentation/wikis/VTAP-Runtime#vtapappdata).
|
|
|
|
|
|
```
|
|
|
<?xml version="1.0" ?>
|
|
|
<api method="get">
|
|
|
<rest>
|
|
|
<url>https://your-domain.atlassian.net/rest/api/2/issue/createmeta</url>
|
|
|
<auth>
|
|
|
<basic username="$apps.$app.Contacts.atlassian_email" password="$apps.$app.Contacts.atlassian_apikey"></auth>
|
|
|
</auth>
|
|
|
</rest>
|
|
|
</api>
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### REST URL Builder
|
|
|
|
... | ... | @@ -383,6 +399,25 @@ Example: |
|
|
</api>
|
|
|
```
|
|
|
|
|
|
#### SOAP Support
|
|
|
|
|
|
```
|
|
|
<api method="get">
|
|
|
<soap>
|
|
|
<url>https://some_soap_endpoint?wsdl</url>
|
|
|
<auth>
|
|
|
<basic username="" password=""></basic>
|
|
|
</auth>
|
|
|
<operation name="SendSMS">
|
|
|
<parameters>
|
|
|
<parameter name="Phone" value="123-456-789-1"></parameter>
|
|
|
<parameter name="Content" value="SMS by Vtiger"></parameter>
|
|
|
</parameters>
|
|
|
</operation>
|
|
|
</soap>
|
|
|
</api>
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Special Value Binding
|
... | ... | |