Commit Graph

837 Commits

Author SHA1 Message Date
Mads T Marquart
8e68531ce4 Merge pull request #145 from Dainius14/dev
Add more events and send methods, some fixes
2017-05-17 16:19:32 +02:00
Dainius
ed7b8488cb rename _setThread() to _getThreadId() 2017-05-17 14:20:07 +03:00
Dainius
386cb4a6c1 fix on seen, on delivered, on marked as seen methods 2017-05-16 21:20:46 +03:00
Dainius
c95544dcb0 add typing indicator 2017-05-16 19:35:00 +03:00
Dainius
4083348c40 add reaction to messages. move request URLs to utils 2017-05-16 19:20:46 +03:00
Dainius
b1cccf4173 fix emoji sending and tests
My bad. Test data is still being commited, changed it to a sample file instead
2017-05-16 14:02:09 +03:00
Dainius
e1e1a0d611 add thread color change 2017-05-16 12:03:20 +03:00
Mads T Marquart
fb88f8d459 Merge pull request #142 from Torxed/master
Changed traceback.print_exc() to logging.exception
2017-05-15 15:50:15 +02:00
Mads T Marquart
0fdab3968d Merge branch 'development' into master 2017-05-15 15:49:14 +02:00
Lord Anton Hvornum
ac0e72d167 There's no such thing as 'unicode' in Py3 2017-05-11 21:23:48 +02:00
Lord Anton Hvornum
e8fbaefa72 There's no such thing as 'unicode' in Py3 2017-05-11 21:23:18 +02:00
Lord Anton Hvornum
de21eafe7b Swapped out for a better error output. You had no idea where errors occured before. 2017-05-11 21:18:27 +02:00
Mads T Marquart
44b3b1330a Created test_data.json
See [here](f63b9d7c4a (commitcomment-22103626)) for more info
2017-05-11 17:35:56 +02:00
Mads T Marquart
fd2e554b98 Updated version 2017-05-11 16:29:48 +02:00
Mads T Marquart
d7acb9a40d Changed default emoji size to small
Also updated version
2017-05-11 16:29:41 +02:00
Mads Marquart
f63b9d7c4a Reworked old events, added deprecation warnings, and improved _send
- Added a new system to show an error if old events are used
- Removed `test_data.json`, since I don't want to risk that anyone
accidentally commits their username & password
- Finished work on `sendEmoji`
- Split `_send` into two parts:
`_getSendData` and `_doSendRequest`, which allows for an easier way of
adding new send requests
2017-05-11 12:55:44 +02:00
Mads T Marquart
7a0c64bf9e Merge pull request #141 from Dainius14/dev
reintroduce things skipped on conflict
2017-05-11 10:26:21 +02:00
Dainius
ef352f097a update test_data.json 2017-05-10 18:44:20 +03:00
Dainius
357083efce reintroduce things skipped on conflict 2017-05-10 18:16:41 +03:00
Mads Marquart
0d75c09036 Added support for deprecating items, and maybe support for python 2.7
- Changed `test_data.js` to `test_data.json`
- Added `deprecated` decorator
- Added `deprecation` function
- Readded old functions, and marked them as deprecated
- Changed parameters back to being type-in-specific (support for python
2.x)
- Deprecated `info_log` and `debug` init paramters
2017-05-10 14:54:07 +02:00
Mads T Marquart
58c7e08d12 Merge pull request #140 into development branch from Dainius14/dev 2017-05-10 11:10:16 +02:00
Dainius
b5443daeb1 Merge branch 'development' into dev 2017-05-10 12:02:39 +03:00
Dainius
5da3e5e4bf update tests 2017-05-09 21:27:32 +03:00
Dainius
f4dec2e48e update send methods 2017-05-09 10:25:04 +03:00
Mads T Marquart
d381d8c940 Version up because of PR revert 2017-05-09 07:35:38 +02:00
Taehoon Kim
524b5e1d91 Merge pull request #135 from Dainius14/revert-134-master
Revert "add event hooks, change method names"
2017-05-08 12:54:28 -07:00
Dainius
94682dbe1a Revert "add event hooks, change method names" 2017-05-08 22:34:15 +03:00
Mads T Marquart
68e5b2c16c Version up thanks to @Dainius14 2017-05-08 20:30:10 +02:00
Mads T Marquart
7793b53a6d Merge pull request #134 from Dainius14/master
NOT BACKWARDS COMPATIBLE: Added event hooks, changed method names
2017-05-08 20:27:26 +02:00
Dainius
329f8e5ae8 fix of conflict resolution 2017-05-08 17:02:28 +03:00
Dainius
22688fe847 Merge branch 'master' into master 2017-05-08 16:54:32 +03:00
Dainius
2721004777 proper implementation of new message, color, emoji, title, nick change 2017-05-08 16:05:14 +03:00
Dainius
1700f95810 add event hooks, change method names 2017-05-06 00:16:20 +03:00
Taehoon Kim
b804dc3f94 Version up thanks to @madsmtm and @tmcadam 2017-05-05 12:59:48 -07:00
Taehoon Kim
921fbb44d9 Merge pull request #133 from madsmtm/patch-1
Fixes #126
2017-05-05 12:54:51 -07:00
Taehoon Kim
6138c56053 Merge pull request #132 from madsmtm/master
Added unit/integration tests, and cleaned up sessions
2017-05-05 12:51:35 -07:00
Taehoon Kim
f88c296706 Merge pull request #131 from tmcadam/patch-1
Fix for getUserInfo method throwing an error
2017-05-05 12:49:03 -07:00
Mads T Marquart
2aa1978274 Update README.rst 2017-05-05 21:17:35 +02:00
Mads T Marquart
c4aa6b4523 Update client.py 2017-05-05 21:15:43 +02:00
Mads Marquart
3b4a369586 Improved error handling in send() 2017-05-05 20:26:23 +02:00
Mads Marquart
f4165462dc Updated README, to reflect changes 2017-05-05 20:16:40 +02:00
Mads Marquart
64243c20b2 Fixed tests, and improved send() 2017-05-05 20:12:17 +02:00
Mads Marquart
2280d31cbb Added an extra test 2017-05-05 18:59:38 +02:00
Mads Marquart
fa026021b2 Added unit/integration tests 2017-05-05 18:54:35 +02:00
Mads Marquart
a280555536 Cleaned up login process, changed saveSession and loadSession and added is_logged_in 2017-05-05 14:24:03 +02:00
Mads Marquart
05ca457946 Added a helper function strip_to_json 2017-05-05 11:39:51 +02:00
Mads Marquart
f4af46cacf Merge branch 'carpedm20/master' 2017-05-05 11:39:12 +02:00
Tom McAdam
dc1d158059 Fix for getUserInfo method throwing an error
The participants property on thread object is return a list of unicodes. If you then pass these unicodes to getUserInfo, they are not being picked up in the if statement on line 905 in the fbidStrip method, so the fbidStrip method was returning a tuple of None objects. The conditional now matches and reformats both str and unicode objects.
2017-05-05 17:03:21 +09:00
Taehoon Kim
5019671b35 version up from 0.8.2 to 0.8.5 thx to @Dainius14 2017-05-04 09:30:27 -07:00
Taehoon Kim
2973a6d301 Merge pull request #129 from Dainius14/master
fix inconsistencies, remove some deprecated and unused things
2017-05-04 09:28:20 -07:00