Banno transactions endpoint ignoring the startDate - banno-digital-toolkit

The transactions endpoint is not considering the start date we provided in the request query and gives us the transactions which are more than six months older.
Example:
URL: GET a/consumer/api/v0/users/XXXXXXXXXXX/accounts/XXXXXXXXXXX/transactions
HEADER: {"Content-Type"=>"application/json", "Authorization"=>"Bearer **MASKED**"}
QUERY: {"since"=>"2022-06-12", "until"=>"2022-06-29"}
BODY:
When the above request is sent we are getting transactions even from 2021-11-01.

The since, until, and updatedSince query parameters use the ISO-8601 instant for filtering. This means you'll have to use a format similar to: 2022-06-08T00:00:00Z to get the filtering behavior.

Related

Stuck on Zero Results: Need Help Navigating Log Insight Queries for API Gateway Logs

I'm having trouble getting any results from my log insights queries for my API Gateway logs, which are in JSON format. I'm trying to get a better understanding of how users are accessing my REST API, but no matter what query I try, I get zero results.
For example, the following query using this log: Method request query string: {api_key=random numbers, country=ca}
fields #message
| parse "api_key=(*)" as api_key
| search api_key!="-"
| count_distinct(api_key)
gave me zero results. I also tried to get the count by user agent string from the following log:
Endpoint request body after transformations: {"resource":"/sources","path":"/sources","httpMethod":"GET","headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","CloudFront-Forwarded-Proto":"https","CloudFront-Is-Desktop-Viewer":"true","CloudFront-Is-Mobile-Viewer":"false","CloudFront-Is-SmartTV-Viewer":"false","CloudFront-Is-Tablet-Viewer":"false","CloudFront-Viewer-ASN":"","CloudFront-Viewer-Country":"US","Host":".execute-api.us-east-1.amazonaws.com","Postman-Token":"","User-Agent":"PostmanRuntime/7.30.0","Via":"1.1 .cloudfront.net (CloudFront)","X-Amz-Cf-Id":"Quxw==","X-Amzn-Trace-Id":"Root=1-63d6deac-","X-Forwarded-For":"","X-Forwarded-Port":"443","X-Forwarded-Proto":"https"},"multiValueHeaders":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate, br"],"CloudFront-Forwarded-Proto":["https"],"CloudFront-Is-Desktop-Viewe [TRUNCATED]
with the following query:
fields #message
| parse "User-Agent\":\"(?<UserAgent>[^\"]*)"
| count_distinct(User-Agent)
Also gave me zero results
I just want to be able to identify unique users on the dashboard with their API key, IP address, and/or user agent string. Can anyone help me get my Log Insights query to work?"

Why is Time not setting when inserting new task using Task Service?

I am trying to insert new task with due date and time in Google Tasks using Tasks Service. The issue i am facing is that date is setting correctly while time is not setting. The code is given below:
I had tried all the solutions given on stackoverflow and other platform, none of them worked.
var task = Tasks.newTask().setTitle(data[i]);
task.setDue("2019-6-25T10:10:10.000Z");
Tasks.Tasks.insert(task, taskList.id);
I expect both the date and time to be set but only date is setting.
The official document says as follows.
Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API.
Unfortunately, in the current stage, by above specification, even if 2019-6-25T10:10:10.000Z is used for due, it becomes 2019-06-25T00:00:00.000Z. So it seems that in order to modify the time, it is required to manually modify it.
Reference:
Resource representations of Tasks

How to retrieve today's step data for a google fit user using REST API?

We are trying to retrieve the step count of our users in real time. If a user is currently running then we try to fetch the latest value of steps taken. While we are able to retrieve the value of steps one day before today we are not able to do so for the current date.
API URL: https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate
Request Json:
{"aggregateBy":[
{"dataTypeName":"com.google.step_count.delta",
"dataSourceId":"derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"}],
"bucketByTime":{"durationMillis":86400000},
"startTimeMillis":1557685800000,
"endTimeMillis":1557772199999
}
Response received:
{"bucket":[
{"startTimeMillis":"1557685800000",
"endTimeMillis":"1557772199999",
"dataset":[
{"dataSourceId":"derived:com.google.step_count.delta:com.google.android.gms:aggregated",
"point":[]}
]}
]}

getOffice365ActivationsUserDetail Graph API returns UnknownTenantId

I am trying to get the information about the users that have Activated Office 365 using:
/beta/reports/getOffice365ActivationsUserDetail?$format=text/csv
I am getting an error:
{
"code": "UnknownTenantId",
"message": "We do not recognize this tenant ID {MyTenantID}. Please double-check the tenant ID and try again."
}
The Read.Report.All permission is already assigned, and I am able to get other information from O365 using the Graph API.
Any suggestions how to resolve this issue?
You shouldn't be using the /beta/ release as this report is available in /v1.0/ and returns test/csv by default.
You also need to provide a valid period to the getOffice365ActiveUserDetail endpoint:
Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated.
For example, to get details for users active in past 7 days you would request:
https://graph.microsoft.com/v1.0/reports/getOffice365ActiveUserDetail(period='D7')

Unable to retrieve unlimited number of record via API

We are struggling to mine all time records for this year via API.
We have tried to include the :dont_limit_result GET variable and set it to 1, however it did not help us.
The version that we use is ACTIVE COLLAB 5.11.0, the URL we are hitting: projects?dont_limit_result=1&page=$page
Please give me some advise on how to proceed.
Most of API responses are paginated, and pagination can't be turned off using a GET switch. Instead, you should check following headers:
X-Angie-PaginationCurrentPage - indicates current page
X-Angie-PaginationItemsPerPage - indicates number of items per page
X-Angie-PaginationTotalItems - indicates number of items in the entire data set.
and walk through pages until you reach the end of data set.
Another option is to give project's filter a try. Here's an example request that will return all projects:
curl -H "X-Angie-AuthApiToken: YOUR-API-TOKEN" "http://your.activecollab.com/api/v1/reports/run?type=ProjectsFilter"
This one will return all active projects:
curl -H "X-Angie-AuthApiToken: YOUR-API-TOKEN" "http://your.activecollab.com/api/v1/reports/run?type=ProjectsFilter&completed_on_filter=is_not_set"
I'm using the php API wrapper 3.0 - how do i get the headers back to know there are more pages and then what is the correct form of the query to get further pages?
For example my basic query is:
$timeRecords = $client->get('projects/22/time-records')->getJson();
to get time records - but this only returns 100 and there are more!
Thanks,
P