mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +00:00
NASA: Require API authorization.
This commit is contained in:
parent
8a18f1a200
commit
ec0c08ff53
3 changed files with 2 additions and 5 deletions
|
@ -34,10 +34,6 @@ public class NasaProvider extends AbstractHafasClientInterfaceProvider {
|
|||
Product.REGIONAL_TRAIN, Product.REGIONAL_TRAIN, Product.SUBURBAN_TRAIN, Product.TRAM, Product.BUS,
|
||||
Product.ON_DEMAND, Product.REGIONAL_TRAIN, Product.REGIONAL_TRAIN };
|
||||
|
||||
public NasaProvider() {
|
||||
this("{\"aid\":\"nasa-apps\",\"type\":\"AID\"}");
|
||||
}
|
||||
|
||||
public NasaProvider(final String apiAuthorization) {
|
||||
super(NetworkId.NASA, API_BASE, PRODUCTS_MAP);
|
||||
setApiVersion("1.14");
|
||||
|
|
|
@ -39,7 +39,7 @@ import de.schildbach.pte.util.Iso8601Format;
|
|||
*/
|
||||
public class NasaProviderLiveTest extends AbstractProviderLiveTest {
|
||||
public NasaProviderLiveTest() {
|
||||
super(new NasaProvider());
|
||||
super(new NasaProvider(secretProperty("nasa.api_authorization")));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -6,6 +6,7 @@ vbb.api_authorization =
|
|||
nvv.api_authorization =
|
||||
sh.api_authorization =
|
||||
vbn.api_authorization =
|
||||
nasa.api_authorization =
|
||||
vgs.api_authorization =
|
||||
vmt.api_authorization =
|
||||
invg.api_authorization =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue