Not a Mac user? https://github.com/modzy/excel-integration-windows
This repository contains resources for building a Modzy integration into Excel with VBA
- Download files: Clone this repo, or download
Modzy_API.bas
andSentimentAnalysisExample.cls
- Enable your Developer Tab: Open up Excel -> go to Preferences -> go to Ribbon & Toolbar -> click on the "Developer" tab to enable it in the main ribbon
- Open up the VBA IDE: Click on the "Developer" tab -> Click on the "Visual Basic" icon
- Import API Module: In the "Project - VBA Project" window right click on the "Modules" folder -> click on "Import File" -> select
Modzy_API.bas
- Import Seniment Analysis Example: In the "Project - VBA Project" window right click on "Sheet1" -> click on "Import File" -> select
SenimentAnalysisExample.cls
- Update environment variables: At the top of the
Modzy_API
module, update the URL of your instance of Modzy, along with the API Key you'll be using to call Modzy
- Add sample input: Add any text you'd like to Cell "A1" on Sheet1 of your spreadsheet
- Run a sample inference: In the VBA IDE, double click on the "Sheet1" object -> click your mouse somewhere within the "Sub SentimentAnalysis()" subroutine -> Click on the triangular run button at the top of the editor
The Modzy_API module lets you interact with the Modzy API using CURL. A lot of the annoyance of setting up, executing, and returning a result has been abstracted away. The main functions you'll likely want to use are:
Function | Description | API Reference |
---|---|---|
ModzyJobSubmission |
This function accepts a JSON string of the full request you'd like to submit to Modzy and returns the reponse provided by the /api/jobs endpoint. This response includes the JobID generated when a job is successfully submitted to Modzy which can be used to query the result of that job. | Create a job |
ModzyResults |
This function accepts a valid Job ID and returns the results of any inference that has been successfully completed. | Get results |
ModzyJobDetails |
This function GETs a job’s details. It includes the status, total, completed, and failed number of items. | Get job details |
We are happy to receive contributions from all of our users. Check out our contributing file to learn more.