Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Mulube committed Nov 21, 2018
1 parent 51ba60d commit 77b83b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ data::

from datastore_client.datastore_pb2 import WriteRequest

# obtain the public key we are requesting data for
# obtain the public key we are writing data for
public_key = 'BGBgTKU7ZJHRBl...'

write_request = WriteRequest()
write_request.public_key = public_key
write_request.data = b'encrypted bytes'
write_request.device_token = 'abc123'

client.write_data(write_request)

0 comments on commit 77b83b2

Please sign in to comment.