Acumatica - Create time cards using the API - api

I have successfully created Time Activities with the Rest API but now my customer wants to see those activities associated in a Time Card. I have been looking at the documentation but I haven't found how to create a time card and then associate activities to it.
Thanks

You would need to create your own end-point object of the screen on the same Web Service End-Point you call. I would suggest running all the activities and then create a timecard associated with the employee, the activities will then pull through based on the date of the activity within the period of the timecard.

Related

Shopify Stores - View Creation Date of Store

I want to view a Shopify Store creation date, even without necessarily being an admin of the store
For example, the format should look something like
"2020-07-19T00:06:15.115Z"
However, I am currently unaware of which API endpoint to hit, or where on the site this information can be found.
I know it is possible to check the earliest uploaded product, but that doesn't neccesarily give you the date of site creation. and I'm not talking about date of domain creation, I'm talking about the actual shopify created_at date
you can check the same using the REST API endpoint shop
you need to make a GET request using API to get the data about the shop.
This is the sample request code GET /admin/api/2021-01/shop.json
and here is the same request the contains the data about shop creation along with other data.

How to calculate Session Duration or Call Duration for a session ID in TokBox API?

How to calculate Session Duration or Call Duration in TokBox API?
We need to display Session/Call duration for each Session-Id, we created from Backend. In our case, only 2 people can connect to a session as we are sharing session-id & token with two users only. Now On the Admin Panel, we need the Actual Call time between these two users.
Is there any API which provides these statics?
There is no such API to calculate the exact call duration.
You can check your invoices on the dashboard under the billing section.
Another way is, you can log the timestamps on event listeners. Like when the first-person joins the session, connectionCreated event gets fired, in that you can log your time stamp and send it to your server. Similarly, when someone leaves the session, you get connectionDestroyed event. Refer to this page for all events related to the session.
You can also refer to our Session Monitoring API - https://tokbox.com/developer/guides/session-monitoring/ which lets you receive real-time session callback events on your server endpoint thereby monitoring the user's session activity.
By using the events mentioned above you can calculate the session duration.
Thanks!

How to get recent sales from Square API?

I'm a developer and am new to Square.
We are going to enter sales into the Square app on iPads and I have to send the sales and payment information automatically and asap to NetSuite (a cloud ERP system)
I'm reading the API docs and can't see a way to run some code when a sales
order is created. Is there a way?
If the answer to 1 is no then which part of the API can I call periodically to request a list of all sales orders since the last time I asked?
Have you looked into using webhooks to be notified when a transaction takes place? Once you receive a notification from the webhook you can then call the appropriate endpoint to get the information you want to send to NetSuite.

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.

Getting ARB subscription information from Authorize.net using Active Merchant?

I'm trying to write a test to verify the start date and interval of an Authorize.net ARB subscription created via Rails + Active Merchant.
I can successfully create the sub using response = GATEWAY.recurring(...) and a I get a success code.
After the subscription is created, however, as far as I can see from the Active Merchant documentation I can't really request any info, like the start date for instance.
The only methods available for ARB are:
cancel_recurring recurring update_recurring
Am I missing something obvious?
The ARB API offers very limited reporting functionality. In fact all you can get through that API is the status of a subscription (ARBGetSubscriptionStatusRequest). The only other options available to you are to create (ARBCreateSubscriptionRequest), update (ARBUpdateSubscriptionRequest), and delete (ARBCancelSubscriptionRequest). This is not a RoR limitation. This is an API limitation. You can confirm this in the ARB Guide.
So, any information you want to keep track of related to a subscription (start date, end date, amount, etc) will need to be recorded by you in your database.
Authorize.Net does have a new Transaction Detail API which they are consistently enhancing. But as of right now it does not report the kind of information you are looking for.