Announcement

Collapse
No announcement yet.

Does reWASD Support an API?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does reWASD Support an API?

    I am interested in enabling keyboard input to reWASD through scripting. Is there a way to send keyboard inputs to reWASD using Python, Node.js, or any other scripting languages?

  • #2
    Originally Posted by san232450 View Post
    Does reWASD Support an API?
    No.

    Originally Posted by san232450 View Post
    Is there a way to send keyboard inputs to reWASD using Python, Node.js, or any other scripting languages?
    If you can send those inputs from a virtual or physical device that reWASD supports - yes.
    I think we have plans to detect "deviceless" inputs, but no ETA is set at the moment.

    Comment


    • #3
      If you're looking to integrate business information APIs into your automation scripts, you can leverage the power of AutoHotKey along with Python or Node.js. Incorporating business information APIs can enhance your automation by providing real-time data for informed decision-making.

      For instance, let's consider using Python to call a business information API within your script:
      ​import requests

      # Define the API endpoint and parameters
      api_url = "https://api.example.com/business-info"
      api_params = {
      "param1": "value1",
      "param2": "value2",
      # Add relevant parameters for your business information API
      }

      # Make a request to the API
      response = requests.get(api_url, params=api_params)

      # Check if the request was successful (status code 200)
      if response.status_code == 200:
      # Extract and use the business information from the API response
      business_data = response.json()
      # Use business_data in your AHK script or perform further actions

      else:
      print(f"Error accessing business information API. Status Code: {response.status_code}")


      ou can adapt this Python script and embed it into your AutoHotKey script or use it as a separate script that gets triggered by your AHK automation.

      Similarly, you can achieve the same with Node.js:

      const axios = require('axios');

      // Define the API endpoint and parameters
      const apiUrl = 'https://api.example.com/business-info';
      const apiParams = {
      param1: 'value1',
      param2: 'value2',
      // Add relevant parameters for your business information API
      };

      // Make a request to the API
      axios.get(apiUrl, { params: apiParams })
      .then(response => {
      // Extract and use the business information from the API response
      const businessData = response.data;
      // Use businessData in your AHK script or perform further actions
      })
      .catch(error => {
      console.error(`Error accessing business information API: ${error.message}`);
      });


      Remember to replace "https://api.example.com/business-info" with the actual endpoint of the business information API you're working with, and adjust the parameters accordingly. This way, you can seamlessly integrate business information retrieval into your automation workflows.​
      Last edited by Reidlake; 24.11.2023, 09:36.

      Comment

      Working...
      X