Mailchimp API 3.0 equivalent of older export API campaignSubscriberActivity - mailchimp

I'm looking for the equivalent of the older campaignSubscriberActivity export options. Specifically, I need to get all activity for campaign since a certain date. Is that possible in 3.0?

As I see in the 3.0 API References You cant filter the date. So you have to filter the response.

You can use
GET /reports/{campaign_id}/email-activity
https://developer.mailchimp.com/documentation/mailchimp/reference/reports/email-activity/

Use the since parameter on your requests to API 3.0.
Like Sergey Shushert said, you can use the reports endpoint to get open, click, and other activity for a campaign. The since parameter lets you filter by date. For instance, https://mailchimp.com/developer/marketing/api/open-reports/list-campaign-open-details/

Related

XRPL: Check last 3 transactions only

Im looking for a way to check the last 3 transactions to a specific XRP wallet
Im using this link: https://data.ripple.com/v2/accounts/rBn1tX24h6H7SZT8mRe9oUypVJNNGgcav8/transactions
But it shows me all the transactions. I would like to see the 3 most recent ones only.
And i cant figure it out.
Use the limit parameter:
https://data.ripple.com/v2/accounts/rBn1tX24h6H7SZT8mRe9oUypVJNNGgcav8/transactions?limit=3
But I would suggest to go with "public rippled method/command" account_tx, where you can also specify the limit.
If you don't want to use websocket and just want to use REST API then you can follow this tutorial: Interacting with XRP Ledger using JSON-RPC

Set Away/Home Mode

Does the API expose the ability to set the mode to Away or Home?
I don’t see this listed in the API documentation. I think this functionality is important as it now only allows you to turn off your thermostats but also configure alerts via the mobile app (I have mine set to only send alerts for my NestCams when I’m away).
You can't set "away", but you can set the thermostat to either Eco or Off.
No. I also hope the old functionality of the Nest API's will be available on the new API. The motion/person per zone is also missing for example.
There's no way to explicitly set that in this new API. Google wants you to use their Home/Away Routines instead, though I don't think all of the old use cases are supported yet (or will be).
https://support.google.com/googlenest/answer/10071816

Does the JIRA REST API support querying a list of labels?

I see the is the ability to get all components of a project by doing
/project/[projectkey]/components
but I don't see any capability or documentation on how to get the list of labels that are available for a project (something like:
/project/[projectkey]/labels
Does the JIRA REST API support querying the list of labels available on a project?
Just to clarify, labels (at least the built-in JIRA ones) are global entities so they can be attached to any Issue in any Project.
As to your question - no, there's no public REST endpoint to get/change/add labels to JIRA.
Jira Cloud has /rest/api/3/label.
Jira Server provides /rest/api/2/jql/autocompletedata/suggestions?fieldName=labels which is however not paginated and only returns the first few labels (label values can be queried using &fieldValue=X).
However, as hacky workaround you can misuse the API endpoints some Atlassian Jira Gadgets are communicating with. Though this has the following disadvantages:
Are internal APIs
Atlassian apparently plans to replace Gadgets with Dashboard Items eventually
Might change behavior, see e.g. JRASERVER-67446
No pagination (?), responses can be huge
Responses are designed for Gadgets, therefore contain irrelevant data
Labels Gadget
/rest/gadget/1.0/labels/gadget/project-<PROJECT_ID>/labels
Where <PROJECT_ID> is the numeric ID of the project.
Heat Map Gadget
/rest/gadget/1.0/heatmap/generate?projectOrFilterId=<PROJECT_OR_FILTER>&statType=labels
Where <PROJECT_OR_FILTER> can be either:
project-<PROJECT_ID>
filter-<FILTER_ID>

Odata v4 orderby expand webapi

so I am using webapi with the latest version of odata
I am trying to sort and filter my expand,
http://services.odata.org/V4/Northwind/Northwind.svc/Orders?%24select=OrderID&%24expand=Order_Details(%24select=UnitPrice;%24orderby=UnitPrice%20desc)
not getting any errors as the data comes back with no issue, however the the orderby inside of the expand dose nothing.
is this sort allowed?
if not do you know of a workaround?
thanks
This is not supported yet, see this issue to track the progress. https://github.com/OData/WebApi/issues/557

Spring social and facebook api 2.4

I'm using spring-social for facebook, <version>2.0.1.RELEASE</version> and it works fine if I use the 2.3 Facebook version API.
I create a new app with the version 2.4 and it doesn’t work correctly, since FB changed the API policies:
https://developers.facebook.com/blog/post/2015/07/08/graph-api-v2.4/
Fewer default fields for faster performance:
To help improve
performance on mobile network connections, we've reduced the number of
fields that the API returns by default. You should now use the
?fields=field1,field2 syntax to declare all the fields you want the
API to return.
For example the post contains only the id and message and not from-name and from-id, so the class Post contains only this two fields.
Now to read this value we need to add “?fields=from”.
The question is, is there a way to use spring social also with the version 2.4 ?
It seems that the problem persists. So, I am using as workaround the following method to bring back the fields I need:
Facebook facebook = new FacebookTemplate(accessToken);
Post post = facebook.fetchObject(postId, Post.class, "picture, message, source, story, caption, place, description, type, from, link, icon, shares, created_time, name");

Resources