|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.textamerica.TextAmerica4J
Java API for interacting with TextAmerica moblog service. You may find more information on the TextAmerica API at http://www.textamerica.com/api.aspx.
Usage:
| Constructor Summary | |
TextAmerica4J(java.lang.String apiKey,
java.lang.String login,
java.lang.String password)
Create an instance to interact with TextAmerica moblog service |
|
| Method Summary | |
java.lang.String |
addKeywords(java.lang.Integer entryID,
java.lang.String keywords)
Adds keywords to a specified entry / image Additional Parameters EntryID (Number) - ID associated with the image that keywords are being added to Keywords (String) - Keywords separated by commas |
java.lang.String |
bookmarksAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
Assigns a bookmark list to a specified moblog. |
java.lang.String |
bookmarksDelete(java.lang.Integer listID)
Deletes a bookmark list and all URLs on that list Additional Parameters ListID (Number) - ID associated with the bookmark list you are deleting |
java.lang.String |
bookmarksRemoveURL(java.lang.Integer listID,
java.lang.String url)
Removes a URL from a specified bookmark list. |
java.lang.String |
bookmarksUnAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
Removes a bookmark list from a specified moblog Additional Parameters MoblogID (Number) - ID associated with your moblog that will display the list ListID (Number) - ID associated with the bookmark list |
java.lang.String |
bookmarksUpdate(java.lang.Integer listID,
java.lang.String title)
Updates or creates a new bookmark list. |
java.lang.String |
bookmarksUpdateURL(java.lang.Integer listID,
java.lang.String url)
Updates or creates a new URL on a specified list. |
java.lang.String |
changeDomain(java.lang.Integer moblogID,
java.lang.String domain)
Changes an existing moblog domain. |
java.lang.String |
changeSecretWord(java.lang.Integer moblogID,
java.lang.String secretWord)
Changes the secret word of a moblog. |
java.lang.String |
changeText(java.lang.Integer moblogID,
java.lang.String text)
Updates the description of a moblog. |
java.lang.String |
changeTitle(java.lang.Integer moblogID,
java.lang.String title)
Updates the title of a moblog. |
java.lang.String |
entryDelete(java.lang.Integer moblogID,
java.lang.Integer entryID)
Deletes a specified entry from a moblog. |
java.lang.String |
entryUpdate(java.lang.Integer moblogID,
java.lang.Integer entryID,
java.lang.String title,
java.lang.String text,
java.lang.Integer categoryID,
java.io.File imageData,
java.lang.String fileType)
Updates or creates a new image entry. |
java.lang.Object |
favoritesAddMoblog(java.lang.Integer listID,
java.lang.String moblogURL)
Add a moblog to a Favorites List. |
java.lang.Object |
favoritesAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
Assigns a Favorites List to be displayed on a moblog. |
java.lang.Object |
favoritesDelete(java.lang.Integer listID,
java.lang.String moblogURL)
Remove a moblog to a Favorites List. |
java.lang.Object |
favoritesRemoveMoblog(java.lang.Integer listID,
java.lang.String moblogURL)
Remove a moblog to a Favorites List. |
java.lang.Object |
favoritesUpdate(java.lang.Integer listID,
java.lang.String title)
TBD Additional Parameters ListID (Number) - ID associated with this list. |
java.util.Vector |
getCommunityMoblogs(java.lang.String which)
Returns a Vector of Hashtables where each hashtable contains the following keys, "title", "MoblogID", "url", and "postTo" Additional Parameters Which (Variable) - If variable is left blank, the method returns most recent 30 moblogs. |
java.util.Vector |
getMyMoblogs()
Returns a Vector of Hashtables where each hashtable contains the following keys, "title", "MoblogID", and "url" |
protected java.util.Vector |
prepareDefaultRequestParameters()
Prepare a vector with the default request parameters, apikey, userID, and password |
java.lang.String |
setTemplate(java.lang.Integer moblogID,
java.lang.Integer graphicID,
java.lang.Integer layoutID)
Sets a template for a specified moblog from the textamerica template library Additional Parameters MoblogID (Number) - ID associated with the image that keywords are being added to GraphicID (Number) - ID associated with the graphic set to use LayoutID (Number) - ID associated with the layout to use |
java.lang.String |
templateUpdateSection(java.lang.Integer moblogID,
java.lang.String sectionID,
java.lang.String htmlCode)
Updates the section HTML for a specified moblog Additional Parameters MoblogID (Number) - ID associated with your moblog that will update SectionID (String) - Allowed values : "header", "footer", "frontpage", "details", "entry", "comment", "result" HTMLCode (String) - HTML code that will display |
java.lang.String |
update(java.lang.Integer moblogID,
java.lang.String domain,
java.lang.String secretWord,
java.lang.String title,
java.lang.String description,
java.lang.String approvalType,
java.lang.String allowComments)
Changes the specific properties of your moblog such as title, text, domain, secret word. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextAmerica4J(java.lang.String apiKey,
java.lang.String login,
java.lang.String password)
throws java.lang.Exception
apiKey - API keylogin - Login IDpassword - Password
java.lang.Exception - If there is an exception creating an XML-RPC client| Method Detail |
protected java.util.Vector prepareDefaultRequestParameters()
public java.util.Vector getMyMoblogs()
throws java.lang.Exception
java.lang.Exception - If there is an error
public java.util.Vector getCommunityMoblogs(java.lang.String which)
throws java.lang.Exception
which - If variable is left blank, the method returns most recent 30 moblogs. If variable is numeric, the method returns the most recent number Variable. If variable is a date value, the method returns all moblogs created on or after Variable. If variable = "all", the method returns all community moblogs (large return).
java.lang.Exception - If there is an error
public java.lang.String update(java.lang.Integer moblogID,
java.lang.String domain,
java.lang.String secretWord,
java.lang.String title,
java.lang.String description,
java.lang.String approvalType,
java.lang.String allowComments)
throws java.lang.Exception
moblogID - ID associated with your moblogdomain - Domain name of your moblogsecretWord - Secretword that makes up your "secret email address"title - Title of your moblogdescription - Description that appears on your moblogapprovalType - [C]ommunity where images must be approved by you - [P]rivate (default) where images post immediatelyallowComments - [Y]es (default) or [N]o
java.lang.Exception - If there is an error
public java.lang.String changeTitle(java.lang.Integer moblogID,
java.lang.String title)
throws java.lang.Exception
moblogID - ID associated with your moblogtitle - New title that appears on your moblog
java.lang.Exception - If there is an error
public java.lang.String changeText(java.lang.Integer moblogID,
java.lang.String text)
throws java.lang.Exception
moblogID - ID associated with your moblogtext - ID associated with your moblog
java.lang.Exception - If there is an error
public java.lang.String changeDomain(java.lang.Integer moblogID,
java.lang.String domain)
throws java.lang.Exception
moblogID - ID associated with your moblogdomain - New domain name of your moblog
java.lang.Exception - If there is an error
public java.lang.String changeSecretWord(java.lang.Integer moblogID,
java.lang.String secretWord)
throws java.lang.Exception
moblogID - ID associated with your moblogsecretWord - New secret word of your moblog
java.lang.Exception - If there is an error
public java.lang.String entryUpdate(java.lang.Integer moblogID,
java.lang.Integer entryID,
java.lang.String title,
java.lang.String text,
java.lang.Integer categoryID,
java.io.File imageData,
java.lang.String fileType)
throws java.lang.Exception
moblogID - ID associated with your moblogentryID - ID associated with the entry you are updating. Use 0 to create a new entry.title - Title associated with the entrytext - Description associated with this entrycategoryID - Category id to associate with this entry (Default is 0).imageData - Image or movie file data encoded in base 64 formatfileType - Allowed values are: "JPG", "JPEG", "MP4", "3GP", "3G2", "MOV"
java.lang.Exception - If there is an error
public java.lang.String entryDelete(java.lang.Integer moblogID,
java.lang.Integer entryID)
throws java.lang.Exception
moblogID - ID associated with your moblogentryID - ID associated with the entry you are deleting
java.lang.Exception - If there is an error
public java.lang.String addKeywords(java.lang.Integer entryID,
java.lang.String keywords)
throws java.lang.Exception
entryID - ID associated with the image that keywords are being added tokeywords - Keywords separated by commas
java.lang.Exception - If there is an error
public java.lang.Object favoritesUpdate(java.lang.Integer listID,
java.lang.String title)
throws java.lang.Exception
listID - ID associated with this list. Use 0 to create a new list.title - Title associated with the list you are updating/creating.
java.lang.Exception - If there is an error
public java.lang.Object favoritesDelete(java.lang.Integer listID,
java.lang.String moblogURL)
throws java.lang.Exception
listID - ID associated with this list. Use 0 to assign "My Favorites".moblogURL - URL of the moblog that you are removing from this Favorites List
java.lang.Exception - If there is an error
public java.lang.Object favoritesAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
throws java.lang.Exception
moblogID - ID of the moblog that will display this listlistID - ID associated with this list. Use 0 to assign "My Favorites".
java.lang.Exception - If there is an error
public java.lang.Object favoritesAddMoblog(java.lang.Integer listID,
java.lang.String moblogURL)
throws java.lang.Exception
listID - ID associated with this list. Use 0 to assign "My Favorites".moblogURL - URL of the moblog that you will add to this Favorites List
java.lang.Exception - If there is an error
public java.lang.Object favoritesRemoveMoblog(java.lang.Integer listID,
java.lang.String moblogURL)
throws java.lang.Exception
listID - ID associated with this list. Use 0 to assign "My Favorites".moblogURL - URL of the moblog that you are removing from this Favorites List
java.lang.Exception - If there is an error
public java.lang.String bookmarksUpdate(java.lang.Integer listID,
java.lang.String title)
throws java.lang.Exception
listID - ID associated with the list you are updating. Use 0 to create a new list.title - Title of the bookmark list
java.lang.Exception - If there is an error
public java.lang.String bookmarksAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
throws java.lang.Exception
moblogID - ID associated with your moblog that will display the listlistID - ID associated with the bookmark list
java.lang.Exception - If there is an error
public java.lang.String bookmarksUnAssign(java.lang.Integer moblogID,
java.lang.Integer listID)
throws java.lang.Exception
moblogID - ID associated with your moblog that will display the listlistID - ID associated with the bookmark list
java.lang.Exception - If there is an error
public java.lang.String bookmarksDelete(java.lang.Integer listID)
throws java.lang.Exception
listID - ID associated with the bookmark list you are deleting
java.lang.Exception - If there is an error
public java.lang.String bookmarksUpdateURL(java.lang.Integer listID,
java.lang.String url)
throws java.lang.Exception
listID - ID associated with your moblogurl - Full URL to add to the list
java.lang.Exception - If there is an error
public java.lang.String bookmarksRemoveURL(java.lang.Integer listID,
java.lang.String url)
throws java.lang.Exception
listID - ID associated with the bookmark listurl - URL that will be removed
java.lang.Exception - If there is an error
public java.lang.String templateUpdateSection(java.lang.Integer moblogID,
java.lang.String sectionID,
java.lang.String htmlCode)
throws java.lang.Exception
moblogID - ID associated with your moblog that will updatesectionID - Allowed values : "header", "footer", "frontpage", "details", "entry", "comment", "result"htmlCode - HTML code that will display
java.lang.Exception - If there is an error
public java.lang.String setTemplate(java.lang.Integer moblogID,
java.lang.Integer graphicID,
java.lang.Integer layoutID)
throws java.lang.Exception
moblogID - ID associated with the image that keywords are being added tographicID - ID associated with the graphic set to uselayoutID - ID associated with the layout to use
java.lang.Exception - If there is an error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||