How to search Deals with its properties ‘closedate’ that falls between a date range - hubspot

I’m getting deals from GET /deals/v1/deal/paged and wanted to know how do I get only the list of deals with closed date falls between a date range (e.g. between 01.Jan.2018 to 31.Jan.2018).
On top of that, does the API support fields sorting?
Thanks.

Derek (from Hubspot) answered to this question in their community forum.
Summary:
Hubspot deal API does not support filter and sorting.
Use contact list to group contacts based on criteria.
Then pull associated deals from the list via API.
Here's the link to the forum post - https://integrate.hubspot.com/t/how-to-search-deals-with-its-properties-closedate-that-falls-between-a-date-range/7789

Related

With MS Graph API is there a way to search a group calendar and return meeting time even if only one of the group member is available?

I have to create a Microsoft Graph API to search a group's calendar. But want to have a meeting with any one person available at that time. What would be the possible way to do that?
You can use either Findmeetingstimes() or GetSchedule() to do so - they will return you the availability info for the users.
If you believe this a new feature which Microsoft needs to consider
implementing, then file a Microsoft uservoice; here's the link for it.

Is there a way to get the survey count totals using the SurveyMonkey API?

I have been working with the SurveyMonkey API for a few days now.
My ultimate goal is to be able to gather the voting results for each question in a survey.
For example... if I have a 5 question survey and each question has 3 options/answers... I'd like to gather the results of each question/option.
From what I'm finding in the API documentation... this is not possible.
Can this really not be possible?
Is there a way to gather the results of each question/answer combo using the API?
I hope I'm simply overlooking something.
Thanks!
It is definitely possible to get this kind of information - you can get the metadata of the survey via the API and all response data. How you process and parse that is up to you.
The most common use case to get a list of survey results is done the following way:
Get a list of respondent_ids via get_respondent_list
Send these respondent_ids to get_responses to get the raw response data
Match up the ids from this data with the ids described in the survey's metadata, which you get from get_survey_details

eBay APIs :: Get related categories using title string

Ok, so this has been asked once before with no answers so i'll give it another bash..
On the eBay website one of the first things you do when listing an item is pass in a string which is the listing title. Given this title string, eBay will go and examine all the categories and pick out a short selection of categories where it thinks you listing will be best suited.
I need to use the bulk File Exchange API and need to find the best category programatically. How can I find the most appropriate categories using one of eBays APIs i.e. is there an API for that?
The only solution I have come up with is to get all the categories using those APIs, then traverse the every category performing some kind of ranking on my inputted listing title (cosine similarity or something).
Any ideas, thanks.
Sounds like you may be able to make use of GetSuggestedCategories.
From the documentation:
Specify keywords describing an item you are looking for using the
Query input field. GetSuggestedCategories returns a list of up to 10
categories that have the highest percentage of listings whose titles
or descriptions contains the specified keywords.

eBay API - filter items by store/custom categories

My scenario: I have a client with an eBay store with custom categories. On their website, they would like to list the items they have for sale. They would like this list to be filterable by custom category.
I've been searching for a couple days now, and I'm still a bit unsure about the best way to proceed.
From what I can gather, the only way to get a list of categories defined in a store is through the GetStore call in the Trading API. This seems to be supported, though I need to get a user token from my client's eBay account. I will assume this works.
I do not, however, see any method of filtering items based on custom categories. I've looked through the documentation of both the Trading and Finding APIs, but all I see are filters on pre-defined eBay categories.
Is it possible to filter on custom/store categories?
I had a task to link seller products to custom categories and the only way I found is to retrieve a list of custom categories with "GetStore" from Trading API, retrieve all seller items with "findItemsAdvanced" call form Finding API, and loop through all retrieved items and get details with "GetItem" call from Trading API.
After that I could find custom categories under $xml->Item->Storefront->StoreCategoryID and $xml->Item->Storefront->StoreCategory2ID.
After digging through and posting in the eBay forums, I found out that no, it is not possible to filter on custom/store defined categories via the API. The only way to filter on custom/store defined categories is on the eBay hosted store.
This is apparently eBay's way to make the store hosted on their site more feature rich than anything you can do via the API.
Even though this question is old, I believe it interesting to give a more recent answer. As stated above, you cannot directly filter items sold by a store using custom store categories (StoreCategoryID). The easiest way to work around this is using the GetSellerList API using a coarse granularity level, which allows you to get the storeCategoryID of each Item on sale within a starting time range or an end time range. You can then filter the items yourself. Here's a link to a forum answer: https://ebay.custhelp.com/app/answers/detail/a_id/1178
Yes no way to get items by Custom categories.
It sounds like either getCategoryInfo or GetCategories might help you.

Can you get the exact date a user started following another using the twitter API?

Let's say user A follows user B, and B follows A. I want to know the exact date A started following B and viceversa.
Is this information stored on twitter? Can I retrieve it using the API?
To clear out: The point of this question is finding a way to know who followed who first.
(I'm assuming both A and B deleted the notification e-mails)
No Ignacio, you can't. You just can know who follows who but not the date the follow started.
Looking at the API, there's is no way, there are two calls to get the followers:
User Methods/statuses/followers
and
Social Graph Methods/followers/ids
Neither of them returns dates or even a serial that would let you see who started following first. Really, there's no indication that twitter is internally storing this information, neither in the API nor Twitter's web interface.
This is a very old question, but perhaps some might be interested to know that while you cannot get the date at which someone started following, you can at least infer an "earliest possible following date" from the fact that the list of followers is ordered according to date, and the fact that follower objects come with a created_at timestamp.
Here's a Python function for calculating an "earliest possible following date": https://github.com/BernhardClemm/twitter-follow-dates
Of course Twitter stores it, because Twitter sorts followers and following lists by the date ;)
It is possible to do this, but impractical. When you call the followers API you can page the results. Each returned object contains next_cursor and prev_cursor items. These refer to the first and last records in the next and previous pages. These values are time based and can be used to calculate the time that the respective users followed you.
It follows that, if you set the page size to 1, you can walk through the list of follower IDs one at a time and the next_cursor value will allow you to derive the follow time for the next record.
This is reasonably simple to implement, however, in practice, you'll very quickly hit Twitter's API rate limit.