Skip to content

Instantly share code, notes, and snippets.

Avatar

farzadhallaji

  • iran
View GitHub Profile
@farzadhallaji
farzadhallaji / req.py
Created Mar 14, 2019
sawtooth request
View req.py
import requests
import json
auth_token = "eyJhbGciOiJIUzUxMiIsImlhdCI6MTU1MjM3MTg3OCwiZXhwIjoxNTUyMzc1NDc4fQ.eyJlbWFpbCI6Im1vaGFtYWQuYWRrNzhAZ21haWwuY29tIiwicHVibGljX2tleSI6IjAyNzk0NGYwOWY3ZDNiYzk2NTkyNWFhZDBmMDdjNDkxZDY4MmU2YjgxOWNlZTY1Yjg5MzY2NzA4NDJjNDIzY2FmMyJ9.vioLHca_WRfq1QK51lxb_WGEOcSxuq9BPkyyz233vM_mVMBptEHOuwui2l9PeCjw86BBFwXzUmvshhn5_bBlZw"
urlP = 'http://212.24.96.236:8040/'
def signup(email,passw,label,des) :
headers = {'Content-type': 'application/json', 'Accept': 'text/plain' , 'Authorization': 'Bearer ' + auth_token}
path = "accounts"
payload = { 'label' : label
View Keybase proof
### Keybase proof
I hereby claim:
* I am farzadhallaji on github.
* I am farzadhallaji (https://keybase.io/farzadhallaji) on keybase.
* I have a public key ASCV8BMpAu47N-Ea8q8vlgLrJDiwUitIiNktf_EDl3x8OQo
To claim this, I am signing this object: