python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

LeanCloud Python SDK

Results 32 python-sdk issues
Sort by recently updated
recently updated
newest added

有些 REST API 提供的功能没有支持,比如 `/1.2/rtm/clients/{client_id}/messages` related ticket: 20970 related forum topic: [20706](https://forum.avoscloud.com/t/python-sdk-1-1-api/20706)

next

Pointer 字段会是 `{"__type": "Pointer", "className": "Foo", "objectId": "objectID"}`

next

目前的广播消息方法只能在系统对话上调用。文档写的是: > 可以给系统中所有的用户发送广播消息,即使用户没有在此对话中。只能在系统对话上调用。 这感觉很奇怪。 相应的 REST 接口就比较正常 `/rtm/broadcast`

next

需要传入一个符合[指定格式][doc]的 JSON 字符串或者对应的字典,而没有像其他 SDK 一样封装类似 `ImageMessage`、`AudioMessage` 的更友好的 API。 [doc]: https://leancloud.cn/docs/realtime_rest_api.html#hash2100394145

next

比如没有按 device id 列表推送

next

比如: 1. 大量的 request_xxx class method 没有使用 class、instance 信息,直接发一个请求,其实是 static method。这些方法中,部分应该改成 static method,部分应该改成实例方法,并更新实例的相应字段,比如 emailVerified 之类。 2. login 是实例方法,login_with_mobile_phone 却是 class method,这样的不一致性并不必要。可以废弃 login_with_mobile_phone,并入 login 方法(增加一个 mobile 参数)。

next

`find_by_client` 和 `find_all` 也有同样的问题。

next

Enable TCP keepalive socket option when requesting to storage. Fix "ConnectionResetError: [Errno 104] Connection reset by peer" ticket #41769 https://github.com/psf/requests/issues/4664 https://codearcana.com/posts/2015/08/28/tcp-keepalive-is-a-lie.html https://blog.cloudflare.com/when-tcp-sockets-refuse-to-die