API and Integrations

Integration Guides

Learn how to integrate Wayvo with various external services and APIs.


Integration Guides

Wayvo provides flexible integration capabilities, allowing you to connect your applications with a variety of external services and APIs. This section covers common integration scenarios and provides step-by-step guides to help you get started.

Integrating with Databases

  1. Connecting to SQL Databases

    • Supported Databases: MySQL, PostgreSQL, SQL Server, SQLite
    • Steps:
      1. Go to the "DataSources" section in Wayvo.
      2. Click "Add New Data Source" and select the SQL database type.
      3. Enter the connection details (host, port, database name, username, password).
      4. Test the connection and save.
    {
      "type": "sql",
      "host": "your-database-host",
      "port": 5432,
      "database": "your-database-name",
      "username": "your-username",
      "password": "your-password"
    }
    
  2. Connecting to NoSQL Databases

    • Supported Databases: MongoDB, Firebase Firestore
    • Steps:
      1. Go to the "DataSources" section in Wayvo.
      2. Click "Add New Data Source" and select the NoSQL database type.
      3. Enter the connection details (host, port, database name, API key or other credentials).
      4. Test the connection and save.
    {
      "type": "nosql",
      "host": "your-database-host",
      "port": 27017,
      "database": "your-database-name",
      "apiKey": "your-api-key"
    }
    

Integrating with REST APIs

  1. Connecting to External REST APIs

    • Steps:
      1. Go to the "DataSources" section in Wayvo.
      2. Click "Add New Data Source" and select the REST API type.
      3. Enter the API endpoint URL and configure the necessary headers and parameters.
      4. Test the connection and save.
    {
      "type": "rest",
      "endpoint": "https://api.external-service.com/v1/resource",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json"
      },
      "params": {
        "param1": "value1",
        "param2": "value2"
      }
    }
    
  2. Fetching Data from REST APIs

    • Use the configured REST API data source to fetch data and bind it to your application components.
    • Example: Fetching user data from an external API.
    {
      "type": "fetch",
      "dataSource": "rest",
      "endpoint": "https://api.external-service.com/v1/users",
      "method": "GET",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
    

Integrating with SOAP APIs

  1. Connecting to External SOAP APIs

    • Steps:
      1. Go to the "DataSources" section in Wayvo.
      2. Click "Add New Data Source" and select the SOAP API type.
      3. Enter the WSDL URL and configure the necessary SOAP headers and parameters.
      4. Test the connection and save.
    {
      "type": "soap",
      "wsdl": "https://api.external-service.com/soap?wsdl",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "text/xml"
      },
      "params": {
        "param1": "value1",
        "param2": "value2"
      }
    }
    
  2. Fetching Data from SOAP APIs

    • Use the configured SOAP API data source to fetch data and bind it to your application components.
    • Example: Fetching order data from a SOAP API.
    {
      "type": "fetch",
      "dataSource": "soap",
      "endpoint": "https://api.external-service.com/soap/orders",
      "method": "POST",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "text/xml"
      },
      "body": "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:web='http://www.example.com/webservices'><soapenv:Header/><soapenv:Body><web:GetOrders><web:CustomerID>12345</web:CustomerID></web:GetOrders></soapenv:Body></soapenv:Envelope>"
    }
    

Integrating with Third-Party Services

  1. Connecting to Google Services

    • Steps:
      1. Go to the "Integrations" section in Wayvo.
      2. Click "Add New Integration" and select the Google service (e.g., Google Sheets, Google Drive).
      3. Authenticate with your Google account and grant necessary permissions.
      4. Configure the integration settings and save.
    {
      "type": "google",
      "service": "sheets",
      "credentials": {
        "clientId": "your-client-id",
        "clientSecret": "your-client-secret",
        "refreshToken": "your-refresh-token"
      },
      "sheetId": "your-sheet-id"
    }
    
  2. Connecting to Slack

    • Steps:
      1. Go to the "Integrations" section in Wayvo.
      2. Click "Add New Integration" and select Slack.
      3. Authenticate with your Slack account and grant necessary permissions.
      4. Configure the integration settings and save.
    {
      "type": "slack",
      "credentials": {
        "clientId": "your-client-id",
        "clientSecret": "your-client-secret",
        "accessToken": "your-access-token"
      },
      "channelId": "your-channel-id"
    }
    

Best Practices for Integrations

  1. Secure Connections

    • Always use HTTPS to ensure secure communication with external services.
    • Store credentials securely and avoid hardcoding them in your application.
  2. Handle Errors Gracefully

    • Implement error handling to manage integration failures gracefully.
    • Log errors and provide meaningful messages to users.
  3. Optimize Performance

    • Optimize API calls to reduce latency and improve performance.
    • Use caching mechanisms where appropriate to minimize redundant requests.

Tip!

Integrating Wayvo with external services can greatly enhance your application's functionality. Follow best practices to ensure secure and efficient integrations.


Next Steps

With these integration guides, you can connect Wayvo to various external services and enhance your application's capabilities. Explore our guides on Using the API and Scripting and Custom Code to further extend your applications.

For more advanced integration options, check out our Advanced Features section.

Previous
Using the API
Next
DB