MATLAB Central Interface for MATLAB

版本 1.0.3.0 (1.0 MB) 作者: Anusha Sridharan
Toolbox to access MATLAB Central APIs from MATLAB
16.0 次下载
更新时间 2023/9/28

Open in MATLAB Online

View MATLAB-Central-Interface-for-MATLAB on File Exchange

MATLAB Central Interface for MATLAB

The toolbox provides easy to use MATLAB® functions that simplify the process of making requests to the MATLAB Central (MathWorks® Community) APIs. Whether you are using the APIs for data-analysis/reporting or for building custom MATLAB apps, the toolbox provides for a smooth integration.

Installation

  1. Install the toolbox by using the Add-on explorer in MATLAB or by downloading the MATLAB_Central_Interface_For_MATLAB.mltbx file attached to the latest release on GitHub, then doubleclicking on it.

Quick Usage

  1. Create a MATLAB script or live-script called 'Quickstart'.

  2. Add the following lines of code to your script

searchResults = SearchApi.search(scope="matlab-answers");
items = searchResults.items
  1. Save and Run the script.

  2. If the code executed successfully, you should see the 'items' being displayed which calls the Seach endpoint from the MATLAB Central Public APIs.

This is just a quick overview -- install and look at gettingStarted.mlx and the examples directory for more information on using the Toolbox.

SDK Reference

Class Method HTTP request Description
SearchApi search GET /v1/search Search MATLAB Central areas for content matching specified query

Search

The Search collection offers a single method called search which offers a powerful way to programmatically search MATLAB Central.

If you are looking to get data from different MATLAB Central areas like MATLAB Answers, File Exchange, Cody, Community Highlights, Community Contests and Blogs with a single call, this would be the function to use. The function also supports many optional parameters that allow you to further filter the data returned, including limiting the scope to specific MATLAB Central areas.

Errors

When the API returns a non 2XX response code, an ApiError is thrown. The ApiError object is an extension of the MException object and contains all the fields from MException and additional retrievable fields with information on how to handle the error. See API Documentation for more details on possible error codes.

Contribution

We are excited to hear any feedback you have for us and welcome contributions in the form of issues.

License

The license is available in the License file within this repository

Copyright © 2023 The MathWorks, Inc.

引用格式

Anusha Sridharan (2024). MATLAB Central Interface for MATLAB (https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.3), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2023a
与 R2014b 及更高版本兼容
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.3.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.3

1.0.2.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.2

1.0.1

1.0.0.0

See release notes for this release on GitHub: https://github.com/mathworks/MATLAB-Central-Interface-for-MATLAB/releases/tag/v1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库