Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
67b62e21
Commit
67b62e21
authored
Mar 17, 2016
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Distinct post Identity and post Certification
parent
926c6c26
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ucoinpy/api/bma/wot.py
+12
-4
12 additions, 4 deletions
ucoinpy/api/bma/wot.py
with
12 additions
and
4 deletions
ucoinpy/api/bma/wot.py
+
12
−
4
View file @
67b62e21
...
...
@@ -27,17 +27,25 @@ class WOT(API):
class
Add
(
WOT
):
"""
POST
Public ke
y data.
"""
"""
POST
Identit
y data.
"""
async
def
__post__
(
self
,
session
,
**
kwargs
):
assert
'
pubkey
'
in
kwargs
assert
'
self_
'
in
kwargs
assert
'
other
'
in
kwargs
assert
'
identity
'
in
kwargs
r
=
await
self
.
requests_post
(
session
,
'
/add
'
,
**
kwargs
)
return
r
class
Certify
(
WOT
):
"""
POST Certification data.
"""
async
def
__post__
(
self
,
session
,
**
kwargs
):
assert
'
cert
'
in
kwargs
r
=
await
self
.
requests_post
(
session
,
'
/certify
'
,
**
kwargs
)
return
r
class
Revoke
(
WOT
):
"""
POST Public key data.
"""
...
...
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
sign in
to comment