public abstract class Google extends Http
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENTID |
static java.lang.String |
CLIENTSECRET |
static java.lang.String |
KEY |
WORKER_THREADS
conversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY
Modifier and Type | Method and Description |
---|---|
void |
awake()
Fetch properties.
|
int |
countJSON(java.lang.String url,
java.lang.String attribute,
Network network)
Return the JSON data object from the URL.
|
Vertex |
delete(java.lang.String url,
Network network)
Send a DELETE request the URL.
|
java.lang.String |
getAuthURL() |
java.lang.String |
getGoogleAccountId() |
java.lang.String |
getRefreshToken() |
boolean |
isAuthorized() |
java.lang.String |
newAccessToken() |
Vertex |
postJSON(java.lang.String url,
Vertex jsonObject,
Network network)
POST the JSON object and return the JSON data from the URL.
|
Vertex |
putJSON(java.lang.String url,
Vertex jsonObject,
Network network)
PUT the JSON object and return the JSON data from the URL.
|
Vertex |
requestJSON(java.lang.String url,
java.lang.String attribute,
java.util.Map<java.lang.String,java.lang.String> headers,
Network network)
Return the JSON data object from the URL.
|
void |
resetRefreshToken(java.lang.String authCode) |
void |
saveProperties() |
void |
setRefreshToken(java.lang.String refreshToken) |
batchProcessURL, convertElement, convertElement, convertToJSON, convertToJSON, convertToMap, convertToXHTML, convertToXHTML, convertToXML, convertToXML, delete, disconnect, encode, findNextTag, findTag, findTag, findTag, getAllBullets, getAllURLBullets, getDomains, getHtmlCleaner, getNextBulletList, getNextNumberedList, getNextParagraph, getParser, getSentence, getText, input, input, nextNode, output, parseHTML, parseRSSFeed, parseURL, parseXHTML, parseXML, parseXMLURL, pool, postHTML, postHTML, postJSON, postJSONAuth, postJSONAuth, postJSONAuth, postJSONAuth, postXML, postXML, postXML, postXML, postXMLAuth, postXMLAuth, postXMLAuth, postXMLAuth, printDate, processHeaders, processRoot, putJSON, requestCSV, requestCSV, requestHTML, requestHTML, requestHTML, requestHTML, requestJSON, requestJSON, requestJSON, requestJSONAuth, requestJSONAuth, requestJSONAuth, requestJSONAuth, requestText, requestText, requestText, requestXML, requestXML, requestXML, requestXML, requestXMLAuth, requestXMLAuth, requestXMLAuth, requestXMLAuth, rss, rssFeed, shutdown, stripBrackets, toJSON, toXML
addListener, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, isEnabled, log, log, log, migrateProperties, notifyExceptionListeners, notifyResponseListener, printInput, removeListener, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, toString
public static java.lang.String KEY
public static java.lang.String CLIENTID
public static java.lang.String CLIENTSECRET
public void awake()
awake
in interface Sense
awake
in class BasicSense
public void saveProperties()
saveProperties
in interface Sense
saveProperties
in class BasicSense
public boolean isAuthorized()
public java.lang.String getAuthURL()
public void resetRefreshToken(java.lang.String authCode) throws java.lang.Exception
java.lang.Exception
public java.lang.String getGoogleAccountId()
public java.lang.String newAccessToken()
public Vertex requestJSON(java.lang.String url, java.lang.String attribute, java.util.Map<java.lang.String,java.lang.String> headers, Network network)
requestJSON
in class Http
public int countJSON(java.lang.String url, java.lang.String attribute, Network network)
public Vertex postJSON(java.lang.String url, Vertex jsonObject, Network network)
public Vertex putJSON(java.lang.String url, Vertex jsonObject, Network network)
public java.lang.String getRefreshToken()
public void setRefreshToken(java.lang.String refreshToken)