File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
BASE_DIR = Path (__file__ ).resolve ().parent
9
- __version__ = "1.2.12 "
9
+ __version__ = "1.2.13 "
10
10
__name__ = "spid_sp_test"
11
11
logger = logging .getLogger (__name__ )
12
12
Original file line number Diff line number Diff line change 2
2
import requests
3
3
4
4
5
- API_URL = "https://indicepa.gov.it/PortaleServices/api/aoo "
5
+ API_URL = "https://www. indicepa.gov.it/PortaleServices/api/ente/ricerca "
6
6
logger = logging .getLogger (__name__ )
7
7
8
8
9
9
def get_indicepa_by_ipacode (value ):
10
10
qs = """
11
11
{"paginazione":
12
- {"campoOrdinamento":"codAoo ",
12
+ {"campoOrdinamento":"idEnte ",
13
13
"tipoOrdinamento":"asc",
14
14
"paginaRichiesta":1,
15
15
"numTotalePagine":null,
16
16
"numeroRigheTotali":null,
17
17
"paginaCorrente":null,
18
18
"righePerPagina":null},
19
- "codiceFiscale":null,
20
- "codUniAoo":null,
21
- "desAoo":null,
22
- "denominazioneEnte":null,
19
+ "codiceFiscaleRicerca":null,
20
+ "area":null,
21
+ "denominazione":null,
23
22
"codEnte":"$IPACode",
24
- "codiceCategoria":null,
25
- "area":null
23
+ "idTipoServizioDigitale":null,
24
+ "lingueMinoritarie":null,
25
+ "codiceCategoria":null
26
26
}"""
27
27
28
28
qs_final = qs .replace ("$IPACode" , value )
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ def test_indicepa():
5
5
6
6
def test_indicepa_2 ():
7
7
res = get_indicepa_by_ipacode ('r_vda' )
8
+
9
+ def test_indicepa_3 ():
10
+ res = get_indicepa_by_ipacode ('cnpaf_0' )
You can’t perform that action at this time.
0 commit comments