How to use API of any application using python script - api

I want a control an application using its API using python, But don't have the knowledge to start. Could someone help?

Related

Expose cobolfiles db using webservices or API

I have to expose data of an old application through webservices or API for manage data and interface a new python app whit it. I know that is a COBOL application, i found this documentation:
Introduction to COBOL Web Services
I don't have experience with cobol; someone can guide me through the best choise for expose cobol data using webservices for example?
So many thanks in advance

Google Sheets API in C++

Is there a way to integrate the api in c++?? I was looking for a way to read from an online google spreadsheet and I need it to be in C++, but the google available library seems to be outdated and is not recommended to use anymore, what can I do??
There is no official Google C++ API Client.
You have a couple of options:
Embedded another language, like Python, into C++ and use that for the API calls.
Call the API endpoints with your own HTTP methods.
Switch to a language with a supported API Client.
Hope this helps.

How to register an application?

Using the Outlook REST API, I want to make a browser extension (To-Do). I need graph api and the REST Task API. I make this application only for myself (maybe I will add it on github). Tell me, should I register an account as a commercial developer? Do I need to confirm for this application? Is it free? Where can I register the application? thank
I suggest you go through the Quick Start documentation, which will help you pick the appropriate platform and walk you through registering your Graph application. Also join the Office 365 Developer Program which will give you a free Office 365 developer subscription that you can use.

Can I run arcgis javascript code in Arcgis Desktop

Basically, what I am looking for is, I want to learn Arcgis javascript api. And I have Arcgis Desktop 10.3 Trial version installed on my pc. I have heard that javascript can be run only in Arcgis Server based web application. So is there any possibility to run this javascript code in Arcgis Desktop? If not, suggest me ideas on how to get a Arcgis Server Trial for practicing javascript api.
Thank you.
No, you cannot use ArcGIS Desktop to run Javascript api app. It is a web based sdk. You can simple run it on any browser. The main things is you would need ArcGIS Server Services to display data on the map.
To learn you dont need to have a server on your local, you can use arcgis online services. You can find more details on their website.
https://developers.arcgis.com/javascript/3/jshelp/
AS T Kambi, said you don't need server to start learning ArcGIS API for JavaScript. If you have a REST endpoint you can use that or peruse AGOL for a layer.
If you're really ambitious the API will also consume OGC Web Map Services, so you could create a Geoserver and publish your data as a WMS layer.
Check out the esri\layers section of the API Documentation
Explicit, you can't run javascript on arcgis desktop, ArcGis Javascript Api only need Api Rest y you can get it trough of examples for ArcGis.
Too other option mores easy is Create account developer in ArcGis under this link
https://developers.arcgis.com/
No, you cannot use ArcGIS Desktop to run Javascript app. It is a web based SDK. You can simple run it on any browser. Also if your doesn't have access to internet you can use ArcGis SDK
for more information click below link
https://www.youtube.com/watch?v=G3sB1I8CB80

RESTful API - Custom Application - C#, Java, php?

This is really basic.I want to implement a RESTful web API.
Now I know you can write custom applications and scripts to integrate with the API.
What I need to know:
In what languages can you write this API? C#, Java, php?
When building/programming a program that implements this API, is this the client and the software that issued the API the server? (eg. Dropbox would be the server and the custom app that integrates with the Dropbox API is the Client?
Thank you.
A REST API can be built in any programming language that allows you to handle HTTP requests (or can be attached to a Web server as a handler for requests). The two methods I've been using:
Stand-alone Windows service implementing a REST service using WCF
WEB server Apache + PHP
You are correct about the terminology. A program consuming a service is called the client, a program providing a service is called the server (while actually in the PHP approach, Apache would be the server as it is taking the request and having the script handle it).
Additional nitpicking: JQuery is not a language, but a framework to help you use some JavaScript features more easily.
On your comment Recap:
Close :-) The Client transfers JSON/XML/whatever to a server using HTTP requests. The Client can be written in any language that can perform HTTP requests.
On the server side, there needs to be some application that handles the HTTP requests (service), also written in any language, as long as it "speaks" HTTP.
The API is the definition of which operations are possible, for example, adding user accounts, getting the current time, etc. (this is what you define - what do you want your service to do?).
The JSON/XML/whatever that you transfer is the workload, the parameters for the API call. For example, if you want to add a new user to your system, the workload could be the new user name, the real name, the eMail address and some other details about the user. If the API call returns the current server time, you might not need any parameters at all, but you get back JSON/XML/whatever from the service.
The actual call being made is determined by the URL you call. For example, the URL for adding a user could be http://localhost/myrestservice/adduser and you'd perform a POST request against that URL with the required workload. For the time example, the URL could be http://localhost/myrestservice/getservertime and you'd perform a GET request against that URL.
I suggest that you read about how REST services actually work before you start, as I see some question marks on your face ;-)
Short:
API = available operations (=> URLs)
Parameters to API calls = JSON/XML/Plain Text/whatever
Client = calls the service through HTTP
Service = handles the calls, replies to client in response to HTTP requests
If you are a php programmer and familiar with Codeigniter framework then go here : Working with RESTful Services in CodeIgniter.
visit also : Rest Tutorial
First of all, you should begin with learning what is a RESTful API.
http://en.wikipedia.org/wiki/Representational_state_transfer
http://www.restapitutorial.com/
http://rest.elkstein.org/
In what languages can you write this API? C#, Java, php, jQuery?
You can write an API in any language. What can help is the framework you'd be using. JQuery is not a language, but a framework for integrating Javascript application in every web browser, so it won't help.
I'd advice you to use a microframework to write your first RESTful API, because they usually are easy to use and help focus on the important (bottle/flask in python, express in javascript, silex in php, spark in java or nina in C#)
When building/programming a program that implements this API, is this the client and the software that issued the API the server? (eg. Dropbox would be the server and the custom app that integrates with the Dropbox API is the Client?
You're right, the server is providing you the service, hence the API. The client is user to that API, and implementing it into something useful.
As most of the people stated already, you can do this in just about any language.
Might I suggest that you look into NodeJS? If so, check out Restify: http://mcavage.github.io/node-restify/
There's a nice community behind NodeJS and I think it's quite open to newcomers. Just try not to pick up bad habits from JavaScript pitfalls. If you're new to programming, I'd suggest reading some intro book.
good luck!