Create a new scheduled Tweet via the API - api

I looked into their documentation and they do provide this feature:
https://support.twitter.com/articles/20170532-scheduled-tweets#How_to_create_a_new_scheduled_Tweet
But would it be possible to do this through the API (I didn't find any reference to this or attributes).

There's no way to do it with the Twitter API. You have two choices:
Either tell your code to run at a specific time (using cron or similar), or check what the time is before posting.
Use a third party service like Buffer - https://bufferapp.com/developers/api

This can be done using Twitter Ads API(scheduled tweets api).
From the api doc,
Scheduled Tweets allow an advertiser or user to create a Tweet that can be scheduled to go live at a later date. In addition to being able create and manage these Tweets, the API allows the ability to associate these Tweets with a line item, to be promoted once the Tweet goes live. This allows advertisers to stage create native Tweets and plan their campaign creatives in advance of any key initiatives. For example, staging a Tweet creative to live immediately upon a new product announcement.
The full set of functionality provided by the Scheduled Tweets API endpoints are listed below:
Create, modify and view newly scheduled Tweets
Associate a Scheduled Tweet with a line item
Query and manage existing scheduled Tweets
Once a Scheduled Tweet goes live, retrieve the live Tweet id
Complete details can be found here

You can create a Scheduled Tweet for the account's full promotable user (default) or the user specified in the as_user_id parameter.
https://developer.twitter.com/en/docs/ads/creatives/api-reference/scheduled-tweets#post-accounts-account-id-scheduled-tweets

There is a limit of 5 user per account... even with a developer account you have to request acces to that API.

Related

How to retrieve old tweets (beyond the most recent 3,200 tweets) from a specific user account on Twitter?

I have access to the Academic Research API. I am trying to retrieve old tweets from political candidates’ accounts during certain election campaigns (i.e., I would ideally specify begin and end dates). The timeline endpoint allows me to retrieve only the last 3,200 tweets of each of these accounts; but this falls short, since I cannot get any tweets from the desired election campaign period because it is too old in the timeline. I would ideally like to retrieve 3,200 tweets from a certain end date (the end of the election campaign). I have also seen the option of a Full archive endpoint, which would allow me to retrieve old tweets, but this does not directly enable (correct me if I am wrong) the targeting of specific users. Is there any additional option you would recommend to deal with this? Or would you rather directly retrieve each of the tweets using the IDs (although this would be too manual)?
Apparently the best way to do this is to use the Archive Search API. It is part of the premium API, so you first need to be granted an application with connection to the Academic Research API, and then opening a premium environment that lets you access the Archive Search API.
Once in the Archive Search API, you can specify dates (they are parameters of the request) and specific users with parameters within the query. An example here with twarc2 (Python): https://twittercommunity.com/t/twitter-api-timeline/171849/4?u=aguperonodo
In rtweet, this functionality can be implemented with the search_fullarchive function.

(ssg-wsg) Why is CorpPass ID required for Update/Delete course run with sessions API?

Does anyone know why is CorpPass Id a required field for "Update/Delete course run with sessions" API? Since this will be an NRIC, would it be a sensitive information to be used in the request body?
Referring to the API: https://developer.ssg-wsg.gov.sg/webapp/docs/product/6kYpfJEWVb7NyYVVHvUmHi/group/374zmR5D0tQeS87eA1hrLV/api/4i96CWAYWH6uGhkhGMZxHd/version/3egIPKn3WK27liSToemjDV
Based on the API page, I do not see where Corppass ID is being referenced. Do provide more details if you have a technical query for the API.
However, based on the description: API is only available to Corppass users - and if you are able to subscribe to it then you are a Corporate Developer. For this query, it would be more appropriate if you can reach out to their servicedesk for details instead: https://developer.ssg-wsg.gov.sg/webapp/faq?anchor=WhoCanIContactIfIHaveQuestionsAboutTheseAPIs

How do I get all retweets or the retweeters of my own personal tweet?

I know you must be thinking that its impossible or its been asked already.
But I have 2 queries. The first is that by using Twitter API, using an access token of my own profile, can I get all (more than 100) the retweets of my own tweet? Not someone else's, as all previous questions at stackoverflow have been asked.
Because there's a difference in private and public tweet and getting data related to it.
Secondly, if we cannot get more than 100 retweets, then how does this app Pickaw (formerly Twrench) https://pickaw.com/en gets all the retweets even if they're more than 500 and the corresponding data?
Any ideas?
The Twitter API only provides access to up to 100 Retweeters (IDs for users that RT'd a Tweet), regardless of whether this is your owned Tweet, or another one.
As for a specific app, it is only possible to speculate, unless the source code was Open Source and available. I would suggest there are two ways to get all the Retweets:
pay for premium or enterprise search access, and use the advanced PowerTrack rules to find Retweets of a specific Tweet ID;
use the Account Activity API webhooks to track whenever a user's Tweet is Retweeted. Not that this would only work in a real-time tracking case; you wouldn't be able to check historical Tweets.

Getting list of all projects or batches with MTurk API

I am creating an application where I need to
1. Fetch the list of projects/batches currently a requester has in his account.
2. Based on the batch/project ID I need to fetch all HITs under that batch.
Is there any MTurk API to do this task ?
I was going through this MTurk API documentation but did not get any such API.
The API does not support batches. Those should be considered features specific to the Requester User Interface (RUI) (i.e., the web interface).
HITs from a batch have a RequesterAnnotation value of something like "BatchID:123456;". This can be used to identify HITs via API operations, but there are no operations that automatically work on a batch.

Customised email alerts through MailChimp API

I am building a site that runs an automated process every 30 minutes to match up new flights with their respective user. Once this process is completed I want to email the flight details out to the respective user. However the flight info will be different for every single user with their being 0-300+ potential emails.
Is this something that the MailChimp API will allow or do? I found this page http://apidocs.mailchimp.com/api/how-to/transactional-campaigns.php which I am not sure if this effects me. Is the STS more suited to this? http://apidocs.mailchimp.com/sts/1.0/
Thanks
Alex
You should use Mandrill (which replace the STS offer). The cool thing with mandrill is that you can link it with you mailchimp account (It's a different product but it's powered by mailchimp).
Add your templates in mailchimp as usual, and hit the button "send to mandrill". Then just use the mandrill api :
http://mandrillapp.com/api/docs/messages.html#method=send-template
You could also use the feedblock option to display custom flight for each user. You just have to provide dynamic rss feed :
http://blog.mailchimp.com/new-feed-merge-tag-options/