Gráfico de commits

135 commits

Autor SHA1 Mensaje Fecha
Lorenz Diener 3ba917d363 Add versionind decorator 2017-12-11 11:49:14 +01:00
codl 050077e97a
fix #111 2017-11-29 22:16:53 +01:00
Lorenz Diener a7e2caa369 Check hashtags in streaming API 2017-11-29 18:04:54 +01:00
Lorenz Diener c5970d10f9 Fix the thing I previously broke
lets pretend I was just testing the CI okay
2017-11-29 17:57:04 +01:00
Lorenz Diener 1c64c39701 add hashtag leading # detection, closes #105 2017-11-29 17:54:27 +01:00
Lorenz Diener 32adb8ce4b
Merge pull request #103 from Kjwon15/feature-asyncstream
Implement is_alive to async stream
2017-11-27 13:50:31 +01:00
codl b9e6a1e9ba
fix string id support to also include in_reply_to_... fields 2017-11-26 22:49:32 +01:00
codl ca11ef77ac
use six instead of relying on python version 2017-11-26 22:33:08 +01:00
kjwon15 3faf7c6473 Get current thread correctly 2017-11-25 03:09:38 +09:00
kjwon15 fa1840c0fb Implement is_alive to async stream 2017-11-25 02:52:00 +09:00
Lorenz Diener 18f69451ed Merge branch 'master' of https://github.com/halcy/Mastodon.py 2017-11-24 15:26:42 +01:00
Lorenz Diener 9e97fce2d6 Break streaming entirely, update docs 2017-11-24 15:25:38 +01:00
Lorenz Diener e220e7cc60 Many fixes for streaming stuff 2017-11-24 15:08:34 +01:00
Lorenz Diener cea4d4251a Change exceptions slightly 2017-11-24 14:20:27 +01:00
Lorenz Diener de2114b92b BREAKING: Make streaming use json hooks 2017-11-24 13:59:50 +01:00
Lorenz Diener 92adc94a77
Merge pull request #102 from codl/http-streams
fix #101 by checking if the stream api uses ws:// or wss://
2017-11-22 14:29:24 +01:00
codl c3a31930b8
fix #101 by checking if the stream api uses ws:// or wss:// 2017-11-22 14:14:35 +01:00
Lorenz Diener 8987590545 ID Unpacking 2017-11-22 10:26:44 +01:00
Lorenz Diener 7771b27b72 Document local hashtag timelines 2017-11-21 14:47:13 +01:00
Lorenz Diener 32f8b8bed9 Added support for local hashtag timelines 2017-11-21 14:46:43 +01:00
Lorenz Diener e1a1592575 Documented report dicts 2017-11-21 14:33:04 +01:00
Lorenz Diener e31b9441f8 Documentation about visibility fixed (Fixes #55) 2017-11-21 13:59:50 +01:00
Lorenz Diener 39548ffe98 Merge branch 'master' of https://github.com/halcy/Mastodon.py 2017-11-21 13:57:21 +01:00
Lorenz Diener 56ec90f17c
Merge pull request #99 from foozmeat/master
Adds alt text support for media uploads
2017-11-21 13:57:03 +01:00
Lorenz Diener d303afefc8 Manually merge #94 2017-11-21 13:53:42 +01:00
James Moore 23d57587e4
Added optional media description
This works with the new alt text support in mastodon 2.0.
2017-11-09 11:55:13 -08:00
codl 6b5deb4898
add support for mastodon v2.0's string IDs 2017-11-05 14:17:49 +01:00
Lorenz Diener 61552f9f84 Merge pull request #93 from codl/fix-ratelimit
fix #92, check for throttling by status code, and do it before the catchall error handler
2017-10-16 11:19:49 +02:00
Haisenburg 9a7efa3657 Use urlparse instead of urllib.parse for python2.7 2017-10-08 03:50:19 +08:00
codl 0ff6abf2f4
fix #92, check for throttling by status code, and do it before the catchall error handler 2017-10-04 16:08:21 +02:00
Lorenz Diener b18b6f201b Merge pull request #89 from Elizafox/exception-hierarchy
Redesign exception hierarchy
2017-10-02 10:13:23 +02:00
Elizabeth Myers c64617ee94 Redesign exception hierarchy
All Mastodon.py errors now derive from MastodonError, for easier
catching in application code that just wants to see if something
happened, and isn't too miffed about the details.

I/O Errors derive from MastodonIOError, for similar reasons.

This change is designed to be backwards compatible.
2017-09-25 19:11:16 -05:00
Elizabeth Myers 9ec0655365 Properly fix redirecting streaming endpoints.
Fixes #84
2017-09-25 18:01:41 -05:00
Elizabeth Myers 67018b2249 Fix notifications_dismiss by passing parameter correctly 2017-09-18 09:59:35 -05:00
Elizabeth Myers 5b90a3c830 Remove debugging print statements 2017-09-16 10:09:32 -05:00
Elizabeth Myers 6067aa4604 Workaround Mastodon issue with streaming API redirection
Mastodon can be configured to use another address for streaming
server-side. Such a setup is common with certain deployments.

However, due to a bug, Mastodon does not properly issue HTTP redirects
for anything but the endpoint /api/v1/streaming (including subdirs). It
instead gives a 404, causing the request to fail.

The workaround is to hit this path first, checking for any redirects,
and modifying the URL accordingly.

This commit also includes a workaround for behaviour in requests that
causes it to strip the Authorization header from redirected requests.
This is intentional behaviour on the part of requests, but breaks the
redirection done by Mastodon.

Fixes #84
2017-09-16 10:05:44 -05:00
codl 92dd24450d
fix exception in log_in, by accepting json dates as timestamps
when requesting a bearer token, mastodon (more specifically doorkeeper)
returns an object with a created_at attribute which is a plain timestamp
unlike in most of mastodon's api:

{
    "access_token": "hunter2",
    "token_type": "bearer",
    "scope": "read write",
    "created_at": 1504824250,
}
2017-09-10 12:23:54 +02:00
Lorenz Diener 7ded08fd84 Fix for fix 2017-09-08 16:41:39 +02:00
Lorenz Diener 419bedc55a Potential fix for #81 2017-09-08 16:40:43 +02:00
Lorenz Diener 517f47083d Add conversation muting 2017-09-08 16:34:11 +02:00
Lorenz Diener 982fde2b56 Add date parsing 2017-09-08 16:27:16 +02:00
Lorenz Diener df26310d1b Add notification dismissal 2017-09-08 15:25:49 +02:00
Lorenz Diener 81e2b4b4ab Change default ratelimit back to 300 2017-09-08 15:06:31 +02:00
Lorenz Diener 7de02fe5b8 Merge branch 'master' into async_streaming 2017-09-08 15:02:58 +02:00
Lorenz Diener 0edc424b11 Clarify visibility documentation 2017-09-08 14:51:07 +02:00
Lorenz Diener c628ff4f05 Small documentation fix for toot() 2017-09-08 14:49:57 +02:00
Lorenz Diener 74cb10eeff Merge branch 'master' into master 2017-09-08 13:44:30 +02:00
lambadalambda 71d1038b32 Send params as part of the query in GET requests
Using the data argument will send them form-encoded like for the other requests, which isn't parsed by many servers for GET requests.
2017-09-08 07:45:23 +02:00
FoxMaSk 6ef2724f66 not pep8 compliant #71 2017-09-05 23:07:24 +02:00
FoxMaSk e0e68ccd6a not pep8 compliant #71 2017-09-05 22:59:32 +02:00