How to using Azure Board to trigger a API call or script - amazon-s3

Is there a way I can set up a API call triggering in Azure Board? Lets say one item is "Request approval for creating S3 buckets in AWS", I want to trigger S3 creating API or script when this item's status changed from doing to done. My end goal is automating tasks like S3 buckets creation, VPC creation, shutdown/start VMs etc in my organization.

You are probably wanting to create a Webhook.
Webhooks provide a way to send a JSON representation of an event to
any service. All that is required is a public endpoint (HTTP or
HTTPS).
You would setup to trigger on work item updated. You would like need to code on your receiver to interpret the update.

A. If you want to trigger the API via work item state update, you need own website to receive message from VSTS web hook and send request to run the API call or script, and create webhook in the Azure DevOps.
Develop your own website with below functions:
Check the current state of the work item updated. You can get a work item information by REST API, and the check the value for System.State.
According to the value of System.State, to trigger related API or script.
B.
Login Power Automate and create a custom workflow. You can refer to this doc for more details.

Related

Shopify custom form

I need to create custom form in shopify eshop and the data send via external API. Is there some way how to do that? Or is there some way how to store the custom data and then access it via private app? Thanks a lot!
This really depends on what data you are trying to collect. If you are just trying to collect standard customer info you can create your own form in .liquid and have a webhook forward the info to zapier or create a private app key/pwd and use the Shopify api to pull information.
If you want more arbitrary information you can create or use an app that allows you to create a form and then process that form's responses.
I have a forms app in development that allows you to create a form and use an api to pull data from form submissions or have the form response sent as a JSON email body. (https://knightsofthenet.herokuapp.com/questionnaire/)
Some of the competition will just email the response in their own format and then you have to parse that response (in the past I've done that with mail gun and a node app. This would be a good use case for SES and AWS Lambda as well.

REST APIs to fetch statistic api usage data from API Connect

This may look a dumb question to you. However, I am looking for a way to fetch API Connect internal data i.e. number of invocations of APIs exposed via API Connect , by which client etc. I know, there are individual dashboard/chart within API Connect. But, I want to build a explicit tool to monitor the same leveraging API Connect data.
is it at all possible ?
Thanks in advance
See the KC at https://www.ibm.com/support/knowledgecenter/SSMNED_5.0.0/com.ibm.apic.apionprem.doc/rapim_analytics_apieventrecordfields.html which will explain how to get the info you want.
Procedure
To obtain analytics data for a Catalog and API provider organization, issue the following call:
GET /v1/orgs/{orgId}/environments/{envId}/events
where
{orgId} is either the URL path segment or the ID of the API provider organization.
{envId} is either the URL path segment or the ID of the Catalog.
The following example shows a call that is issued from a browser and then shows all the event fields in the corresponding response. The call is issued to return two analytics events (limit=2), and includes a next parameter for requesting further events.
https://api-manager-server.company.com/v1/orgs/macs-shack/environments/sb/events?next&limit=2

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.

Create a new scheduled Tweet via the 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.

How can I set my event's 'status' attribute to 'live' using Eventbrite's API?

I am doing Eventbrite integration in my Application. I am trying to create Event and make it live. I found the Event creation API, but that doesn't include any information on how to make the even live.
How can I set my event's 'status' attribute to 'live' using Eventbrite's API?
If you are using one of the Eventbrite API clients, you should be able to do something like this:
eb_client.event_update({id: event_id, status: 'live'});
I'd recommend trying the interactive documentation page for the event_update API call to learn more.
The developer site uses our available OAuth2.0 authorization service to access your events, allowing you to inspect your API request urls and response data.
Before you go live, make sure that your event has tickets available, and that you have assigned a venue and organizer profile whenever possible.