/** * Create a new OICP v2.0 AuthorizeStart request. * * @param EVSEOperatorId the unique identification of the EVSE operator for this request. * @return a new AuthorizeStart request builder object. */publicAuthorizeStartRequestAuthorizeStart(finalEVSEOperator_IdEVSEOperatorId){...}/** * Create a new OICP v2.0 AuthorizeStart request. * * @param EVSEOperatorId the unique identification of the EVSE operator for this request. * @param AuthToken the authentication token for this request. * @return a new AuthorizeStart request builder object. */publicAuthorizeStartRequestAuthorizeStart(finalEVSEOperator_IdEVSEOperatorId,finalAuth_TokenAuthToken){...}// AuthorizeStartRequest builder methodspublicAuthorizeStartRequestsetEVSEId(EVSE_IdEVSEId){...}publicAuthorizeStartRequestsetPartnerProductId(PartnerProduct_IdPartnerProductId){...}publicAuthorizeStartRequestsetSessionId(ChargingSession_IdSessionId){...}publicAuthorizeStartRequestsetPartnerSessionId(ChargingSession_IdPartnerSessionId){...}publicAuthorizeStartRequestsetAuthToken(Auth_TokenAuthToken){...}publicAuthorizeStartRequestsetQRCodeIdentification(EVCO_IdEVCOId,PINPIN){...}publicAuthorizeStartRequestsetPlugAndChargeIdentification(EVCO_IdEVCOId){...}publicAuthorizeStartRequestsetRemoteIdentification(EVCO_IdEVCOId){...}
CompletableFuturereq=newCPOClient("api.playground.hubject.com").AuthorizeStart(EVSEOperator_Id.Parse("DE*GEF"),Auth_Token.Parse("08152305")).Run(result->{if(result.getAuthorizationStatus()==AuthorizationStatus.Authorized)System.out.println("Authorized!");else{System.out.println(result.getStatusCode().getCode());System.out.println(result.getStatusCode().getDescription());System.out.println(result.getStatusCode().getAdditionalInfo());}});// Wait for the future to complete...req.get();
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.