#!/bin/bash token=123 api_url=https://rejik.ru/api/v1/ curl -H "REJIK-API-TOKEN: ${token}" "${api_url}/userinfo"
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests api_url = 'https://rejik.ru/api/v1/' api_token = '123' response = requests.get(api_url + 'userinfo', headers={'REJIK-API-TOKEN': api_token}) print(response.status_code, response.json())
{ "score" : 222, "trust" : "200", "login" : "test", "groups" : [ "buysell.urls", "software.urls" ], "rank" : 1 }
'list_key': '123', 'rules': {'1': {'reasons': ['https://www.filehorse.com/', 'http://secon.reason.urls.com'], 'rule': 'filehorse.com'}, '10': {'rule': 'patent.gov.uk'}, '2': {'reasons': ['https://www.yourbestsoft.com/'], 'rule': 'yourbestsoft.com'}, '3': {'reasons': ['https://biblprog.org.ua/'], 'rule': 'biblprog.org.ua'}, '4': {'reasons': ['http://m.softportal.com/'], 'rule': 'm.softportal.com'}, '5': {'rule': 'acdsee.com'}, '6': {'reasons': ['http://softcatalog.info'], 'rule': 'software2'}, '7': {'reasons': ['https://www.besplatnyeprogrammy.ru/'], 'rule': 'besplatnyeprogrammy.ru'}, '8': {'reasons': ['https://www.majorgeeks.com/'], 'rule': 'majorgeeks.com'}, '9': {'reasons': ['https://filehippo.com/'], 'rule': 'filehippo.com'}}}