public class SphinxService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME |
static okhttp3.MediaType |
FORM |
static okhttp3.MediaType |
JSON |
Constructor and Description |
---|
SphinxService() |
Modifier and Type | Method and Description |
---|---|
String |
accessToken() |
static okhttp3.OkHttpClient |
getHttpClient() |
String |
post(String endpoint,
String json) |
void |
postTicketData(fr.paris.lutece.plugins.ticketing.business.ticket.Ticket ticket) |
public static final String BEAN_NAME
public static final okhttp3.MediaType JSON
public static final okhttp3.MediaType FORM
public static okhttp3.OkHttpClient getHttpClient()
public String accessToken() throws IOException
IOException
public String post(String endpoint, String json) throws IOException
IOException
public void postTicketData(fr.paris.lutece.plugins.ticketing.business.ticket.Ticket ticket) throws IOException
IOException
Copyright © 2018 City of Paris. All rights reserved.