Hi All,

Im new to programming and am trawling through Python as we speak.

API & web services type stuff is of real interest to me but not sure how to structure my learning.

I know google is my friend but any ideas on how best to structure my learning ie: categories of things to learn and in which order to learn them?

Thanks!

Tubs

Pick a programming language. One language. Python is a good choice, but there are many other good choices. Then do some tutorials in that language. When you get stuck, ask (here) for help with what you ran up against. Be sure to show what work you have done.

While griswolf's advice is spot on, I would like to add few more details to help you out.

Broadly speaking, there are two types of "web services"; RESTful services and SOAP based ones. I would recommend skipping over SOAP services because they are enterprisey, complicated and "not so hot" these days. ;)

A lot of online services these days offer REST API which makes it a perfect choice if you want to play around. Depending on the platform you are on, I would recommend you to install the "requests" module for Python, which makes it dead easy to play with HTTP on the REPL (read-eval-print loop i.e. your Python interactive prompt).

Also give these slides a read (and the ones which appear in suggestions if you have some more time). The simplest example of a REST api in action using requests module is:

import requests
res = requests.get('https://github.com/timeline.json')
status, headers = res.status_code, res.headers
# print them out to view the headers and the HTTP response status code
# Also, inspect the object attributes to find out what more details you can get from the response object
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.