Examples

You can find full code examples in the examples directory of the source code.

Quick Examples

Connect

Note that there isn’t a real connection that occurs at this point.:

from restlib import REST

con = REST('http://api.example.com')

Get

You can get a simple resource ...:

con.get('/a/resource/')

Or one that requires parameters.:

con.get('/search', {'q': 'test'})

Table Of Contents

Previous topic

About

Next topic

Development

This Page

Quick search