Commit graph

18 commits

Author SHA1 Message Date
sneakypete81
3f1757d0aa photos.update/update now also accept a list of Photo objects 2013-06-30 17:30:25 +01:00
sneakypete81
48e29f24a9 PyLint fixes
Moved credentials into new Config class
2013-05-25 11:33:41 +01:00
sneakypete81
b2e7aa1f27 Trailing whitespace removal 2013-05-25 11:33:41 +01:00
sneakypete81
ba681cea89 Code tidyup after 2to3 conversion
Moved config parser into its own module
2013-05-25 11:33:41 +01:00
sneakypete81
0805f032fb Python3 support 2013-05-25 11:33:41 +01:00
sneakypete81
6c75abc9a8 No need to explicitly specify a filename.
Requests can use the file object to determine the filename.
2013-05-25 11:33:41 +01:00
sneakypete81
326394fed9 Updated to use requests and requests_oauthlib
To allow Python3 support.
Also removes quite a bit of multipart post magic.
2013-05-25 11:33:40 +01:00
sneakypete81
ea904e4337 Not that frontend issue 955 is resolved, we should use the return value of the transform API to replace the photo object's fields 2013-04-13 13:11:26 +01:00
sneakypete81
ee3840de9f Merge branch 'master' into transform 2013-04-13 13:05:14 +01:00
Pete
e09f166743 Update delete endpoints to return True if successful.
If the operation isn't successful, the API returns an error code,
which raises an OpenPhotoError exception.
2013-04-09 18:18:12 +01:00
sneakypete81
665383a6c2 Merge branch 'master' into multipart
Conflicts:
	tests/test_base.py
2013-04-02 20:59:26 +01:00
sneakypete81
5858043d44 Add multipart form support. Does not yet handle additional post parameters correctly. 2013-03-17 15:08:09 +00:00
Pete
895b98dedf Next/previous now returns a list of multiple photos (Issue #1004) 2013-03-16 08:51:04 +00:00
sneakypete81
4147029b14 Add photo.transform support and testcase. 2012-09-10 23:57:42 +01:00
sneakypete81
fafeb70ec1 If an object is passed as a parameter, extract its ID.
This allows things like:
   photos = client.photos.list()
   client.photos.delete(photos)
2012-09-04 09:08:57 +01:00
sneakypete81
21c38c53cb Move api_ classes to be members of OpenPhoto (eg: client.photos_list --> client.photos.list) 2012-09-02 09:02:18 +01:00
sneakypete81
061ff8e7af Fixed photos batch methods 2012-08-29 16:54:47 +01:00
sneakypete81
b418cf7e78 Extended API to add pythonic classes/methods. See the updated README.markdown for examples 2012-08-28 18:59:33 +01:00