Hi Andy,
What I meant was, in terms of POST limits, they are not API-specific limits but associated with the Twitter account in question, and I’m not aware that this is something that varies from account to account (I assumed it is a set number per account, as I haven’t seen anything that suggests a deviation from this.)
The code I’m using (with use of Twitter4j) to upload a tweet looks like this:
try {
UploadedMedia media = twitter.uploadMedia(new File(fileName));
mediaID = media.getMediaId();
StatusUpdate update = new StatusUpdate(tweetText);
update.setMediaIds(new long[]{mediaID});
Status status = twitter.updateStatus(update);
LOGGER.info("Status update successful! ID = " + status.getId() + " & text = " + status.getText());
} catch (Exception e) {
LOGGER.error("Failure submitting to Twitter!", e);
return false;
}
uploadMedia makes a call to POST media/upload in the Media API, i.e. the simpler single-upload endpoint, then updateStatus makes a call to POST statuses/update.
I have read the automation rules, but I can’t find anything in there that I am violating - let me try to explain more clearly what my app is trying to do:
I add artworks to a local MySQL database, and my app then tweets these in a specific way: A string containing the title of the work, the artist’s name or twitter handle, and the link to their webpage in which it was published, plus the image of the artwork itself as a media upload. The URL is the specific link to that artwork, so I post almost no duplicate links. It tweets these automatically based on a random timeframe; between every 30-120 minutes for 12 hours of the day, and between every 5-10 minutes during the other 12 hours.
As such, my application only posts status updates (no GET calls, nothing else), and it has only one copy running on my local machine, updating one Twitter account (@antsstyle).
I didn’t even know BotMaker existed before you pointed that out, though I can’t seem to find much info on how it determines what to act upon or why it would give me a rate limit error…
EDIT: There is only one idea I can think of - with a lot of the tweets I manually add hashtags to be added to the end of the tweet status string before scheduling them, so it’s potentially possible that I have unwittingly scheduled a tweet or two to be automatically tweeted that fell afoul of the “no automated tweets with trending topics” rule at the time that they were tweeted, though it seems odd I would not have received a more specific reason for the write restriction if that was the case.