|
|
|
@ -1,5 +1,3 @@ |
|
|
|
# Testa om det finns en giltig access token och skapa den om den inte finns, |
|
|
|
|
|
|
|
# spara till access_token.json |
|
|
|
|
|
|
|
import json |
|
|
|
import json |
|
|
|
from datetime import datetime, timedelta |
|
|
|
from datetime import datetime, timedelta |
|
|
|
from pprint import pprint |
|
|
|
from pprint import pprint |
|
|
|
@ -10,7 +8,6 @@ import requests |
|
|
|
|
|
|
|
|
|
|
|
# API documentation: https://actapublica.docs.apiary.io/#reference/0/search-results-of-users-agents/post |
|
|
|
# API documentation: https://actapublica.docs.apiary.io/#reference/0/search-results-of-users-agents/post |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActaPublica: |
|
|
|
class ActaPublica: |
|
|
|
def __init__(self, client_id=False, client_key=False): |
|
|
|
def __init__(self, client_id=False, client_key=False): |
|
|
|
if not client_id: |
|
|
|
if not client_id: |
|
|
|
|