Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 2.99 KB

GoogleIntegrationApi.md

File metadata and controls

79 lines (60 loc) · 2.99 KB

GoogleIntegrationApi

All URIs are relative to http://localhost

Method HTTP request Description
addGoogleDocumentExport POST /integrations/google/drive/documents/{documentId}/export Add Google Document Export

addGoogleDocumentExport

AddGoogleDocumentExportResponse addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId)

Add Google Document Export

Exports a Google Document; ONLY available with FormKiQ Enterprise

Example

// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.GoogleIntegrationApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("http://localhost");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    GoogleIntegrationApi apiInstance = new GoogleIntegrationApi(defaultClient);
    String documentId = "documentId_example"; // String | Document Identifier
    AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = new AddGoogleDocumentExportRequest(); // AddGoogleDocumentExportRequest | 
    String siteId = "siteId_example"; // String | Site Identifier
    try {
      AddGoogleDocumentExportResponse result = apiInstance.addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling GoogleIntegrationApi#addGoogleDocumentExport");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
documentId String Document Identifier
addGoogleDocumentExportRequest AddGoogleDocumentExportRequest
siteId String Site Identifier [optional]

Return type

AddGoogleDocumentExportResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -