Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChatSecure/ChatSecure-Push-Server
/ functions
Functions
66 in github.com/ChatSecure/ChatSecure-Push-Server
⨍
Functions
66
◇
Types & classes
51
↳
Endpoints
8
↓ 52 callers
Method
get
(self, request, *args, **kwargs)
push/api/routers.py:39
↓ 5 callers
Function
get_verified_account_from_post_data
(post_data)
push/api/old.py:104
↓ 4 callers
Function
log_message_sent
(exception=None, priority=None, enqueue_date_str=None)
push/messages/messenger.py:128
↓ 3 callers
Method
check_account_resp
(self, request_data, response)
push/accounts/tests.py:61
↓ 2 callers
Function
_send_apns
Send a message to one or more APNS recipients :param registration_ids: a single or iterable collection of registration ids (APNS tokens)
push/messages/messenger.py:48
↓ 2 callers
Function
_send_gcm
Send a message to one or more GCM recipients :param registration_ids: a single or iterable collection of registraion ids (GCM tokens) :p
push/messages/messenger.py:81
↓ 2 callers
Method
check_signup_then_login
Test whether account creation then login return expected responses :param request_data: create account request data including a 'user
push/accounts/tests.py:49
↓ 2 callers
Method
create_account
(self, username, password)
push/api/tests.py:42
↓ 2 callers
Method
create_device
(self, name, registration_id, auth_token, apns=True)
push/api/tests.py:48
↓ 2 callers
Method
create_token
(self, name, device_id, auth_token, apns=True)
push/api/tests.py:55
↓ 2 callers
Function
create_user_response_data
(user, token=None)
push/accounts/views.py:93
↓ 2 callers
Function
get_account_from_account_id
(account_id)
push/api/old.py:115
↓ 2 callers
Function
hash_password
(account, password)
push/api/old.py:77
↓ 2 callers
Function
send_apns
(registration_ids, message, priority, **kwargs)
push/messages/messenger.py:23
↓ 2 callers
Function
send_gcm
(registration_ids, message, **kwargs)
push/messages/messenger.py:41
↓ 2 callers
Function
setup_rollbar
Setup Rollbar uncaught exception handling. The Django application is automatically setup via Rollbar's middleware, but worker processes need
push/messages/messenger.py:117
↓ 1 callers
Method
create
(self, request)
push/accounts/views.py:47
↓ 1 callers
Function
find_account_by_hashed_transaction_id
(hashed_original_transaction_id)
push/api/old.py:128
↓ 1 callers
Method
get_devices
(self, auth_token, apns=True)
push/api/tests.py:62
↓ 1 callers
Method
get_tokens
(self, auth_token)
push/api/tests.py:68
↓ 1 callers
Function
hash_original_transaction_id
(original_transaction_id)
push/api/old.py:120
↓ 1 callers
Function
maybe_is_auth_token
(potential_uuid)
push/accounts/tests.py:10
↓ 1 callers
Function
maybe_is_uuid
(potential_uuid)
push/accounts/tests.py:6
↓ 1 callers
Method
retrieve
(self, request, pk=None)
push/accounts/views.py:34
↓ 1 callers
Function
send_message
Send a push message containing to the owner of the provided token. data is packaged within a 'message' dictionary as below: { ... APNS
push/messages/views.py:50
↓ 1 callers
Function
verify_password
(account, password)
push/api/old.py:81
↓ 1 callers
Function
verify_receipt
(receipt_data)
push/api/old.py:87
Method
__init__
(self, *args, **kwargs)
push/tokens/serializers.py:25
Method
__unicode__
(self)
push/devices/models.py:31
Method
__unicode__
(self)
push/tokens/models.py:19
Function
_task_send_apns
(registration_ids, message, **kwargs)
push/messages/messenger.py:106
Function
_task_send_gcm
(registration_ids, message, **kwargs)
push/messages/messenger.py:112
Method
add_arguments
(self, parser)
push/tokens/management/commands/delete_expired_tokens.py:13
Function
add_dpt
()
push/api/old.py:191
Function
block_pat
()
push/api/old.py:253
Function
change_password
()
push/api/old.py:226
Method
clean_username
(self)
push/accounts/admin.py:11
Method
create
(self, request)
push/messages/views.py:31
Function
create_auth_token_for_user
Create an auth token for Django Rest Framework's TokenAuthentication for this user. This token is required for SDK API access.
push/accounts/models.py:15
Function
debug_task
(self)
push/push/celery.py:27
Method
destroy
(self, request, pk=None)
push/accounts/views.py:80
Function
event
Log an event to the analytics backend
push/analytics/analytics.py:11
Function
exception
Log an exception to the logging backend
push/analytics/analytics.py:18
Method
get_api_root_view
Return a view to use as the API root.
push/api/routers.py:12
Method
get_expiry_date
(self)
push/tokens/models.py:24
Method
get_queryset
(self)
push/devices/views.py:15
Method
get_queryset
This view should return a list of all the devices for the currently authenticated user.
push/tokens/views.py:32
Method
handle
(self, *args, **options)
push/tokens/management/commands/delete_expired_tokens.py:20
Method
has_object_permission
(self, request, view, obj)
push/api/permissions.py:10
Function
knock
()
push/api/old.py:269
Method
list
(self, request)
push/accounts/views.py:44
Method
list
(self, request, *args, **kwargs)
push/api/views.py:35
Function
list_pat
()
push/api/old.py:241
Method
perform_create
(self, serializer)
push/devices/views.py:11
Method
perform_create
(self, serializer)
push/tokens/views.py:42
Function
register
()
push/api/old.py:140
Function
request_pat
()
push/api/old.py:210
Function
request_product_identifiers
()
push/api/old.py:134
Method
test_create_account_no_email
Ensure we can create a new account and subsequently login without email
push/accounts/tests.py:15
Method
test_create_account_with_email
Ensure we can create a new account and subsequently login with email
push/accounts/tests.py:24
Method
test_device_and_token_visibility
Ensure that ownership permissions are respected for tokens and devices e.g: Alice's Devices and Tokens are not visible to Bob
push/api/tests.py:11
Method
test_password_auth
(self)
push/accounts/tests.py:33
Method
to_internal_value
(self, data)
push/devices/serializers.py:17
Method
to_representation
(self, obj)
push/devices/serializers.py:14
Method
to_representation
Object instance -> Dict of primitive datatypes.
push/api/serializers.py:13
Method
validate
Check that an APNS or a GCM device was specified
push/tokens/serializers.py:40