Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
beem
Commits
178e3637
Commit
178e3637
authored
6 years ago
by
crokkon
Browse files
Options
Downloads
Patches
Plain Diff
Conveyor: adding set_user_data
parent
e3c89a31
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beem/conveyor.py
+23
-0
23 additions, 0 deletions
beem/conveyor.py
with
23 additions
and
0 deletions
beem/conveyor.py
+
23
−
0
View file @
178e3637
...
...
@@ -158,6 +158,29 @@ class Conveyor(object):
"
conveyor.get_user_data
"
,
[
account
[
'
name
'
]])
def
set_user_data
(
self
,
account
,
params
,
signing_account
=
None
):
"""
Set the account
'
s email address and phone number. The request has to be
signed by an admin account.
:param str account: requested account
:param dict param: user data to be set
:param str signing_account: (optional) account to sign the
request. If unset, `account` is used.
Example:
.. code-block:: python
from beem import Steem
from beem.conveyor import Conveyor
s = Steem(keys=[5JADMINPOSTINGKEY])
c = Conveyor(steem_instance=s)
userdata = {
'
email
'
:
'
foo@bar.com
'
,
'
phone
'
:
'
+123456789
'
}
c.set_user_data(
'
accountname
'
, userdata,
'
adminaccountname
'
)
"""
return
self
.
_conveyor_method
(
account
,
signing_account
,
"
conveyor.set_user_data
"
,
[
params
])
def
get_feature_flags
(
self
,
account
,
signing_account
=
None
):
"""
Get the account
'
s feature flags. The request has to be signed by the
requested account or an admin account.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment