API calls to outside data sources

API calls to outside data sources - Сообщения

#1 Опубликовано: 06.11.2018 00:44:30
Dionysios J. Pantazis

Dionysios J. Pantazis

16 сообщений из 179 понравились пользователям.

Группа: User

Greetings all-

I know that SMATH uses API's in its internal programming structure, but can it be used to call outside data sources?

I was looking at the Applied Technology Council Multi-hazard Design Loads Public API page-

https://hazards.atcouncil.org/api

The intent is to be able to the query design loads for each dataset by latitude and longitude: Wind, Snow, Earthqauke and Siesmic.

The page is not entirely clear but it seems to use curl in conjunction with http get to pull the data set of interest.

At first glance, this would seem to be only be beneficial to Civil Engineers working on projects in the US (lower 48, Alaska, Hawaii, Puerto Rico, Guam, American Samoa, and the US Virgin Islands), but I would think the the Eurocode and Canadians would not be far off either. But, many datasets and files are manupulated with curl and API keys for security these days.

I have used curl to pull & push files to webservers, so the feature is familiar to me, but I did not develop it in those instances, I simply followed a cookbook in those cases to set up my own scripts and use them.

I assume as most feature requests, this would probably be a plugin type thing?

Dennis
Join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#2 Опубликовано: 06.11.2018 01:37:34
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

You can try Script region. Using it you can call an external program (cmd script with curl) and then import data. Using Script region also possible to change the data and "insert" it in SMath worksheet "directly". All of these methods require some programming skills.
Russia ☭ forever, Viacheslav N. Mezentsev
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений