Using Pinterest Marketing api to fetch all entities? - pinterest

Is there an edge that would allow fetching all the campaigns, adgroups, etc., of a given advertiser? In researching this I see these:
GET /ads/v3/campaigns/{campaign}/
GET /ads/v3/adgroups/{adgroup}/
...
which return only single entities. I also found that there is an async report that returns entities in batch:
advertisers/<advertiser ID>/entities/batch/
Is this the best way to accomplish this? If so, the doc says it only supports campaigns right now, is that still the case?
Thanks

Sorry to waste your time folks, I've since found more and better doc and discovered that there is this:
/ads/v3/advertisers/{advertiser}/campaigns/
Here is a link to the doc for your own reference:
https://developers.pinterest.com/docs/redoc/#operation/ads_v3_get_advertiser_campaigns_handler_GET

Related

Google Books API - Book Details not Returned

So I started using the Google Books API for an application that I am building and I am fairly happy with the results.
But I have noticed a strange behaviour sometimes. Some ISBNs do not return any book details even though the book exists in the database.
For example, if I give: https://www.googleapis.com/books/v1/volumes?q=isbn:0262527359,I get the following response:
{
"kind": "books#volumes",
"totalItems": 0
}
I digged around the internet regarding this problem and found this link:
https://productforums.google.com/forum/#!topic/books-api/R5DvlRh-EKo
They suggest a workaround by not mentioning isbn: in the search query. So, the query becomes: https://www.googleapis.com/books/v1/volumes?q=0262527359
This method is not perfect but it's the only workaround I found.
That's when I noticed another problem. There is a mismatch between the description given on the webpage and the one in the response to the API call.
Can someone explain these strange behaviours to me? Are there any better solutions?
So i did some digging around and found out about this strange behaviour, when your query is of the form ...?q=isbn:0262527359, the results you get are the books that have this same isbn only and when you use the query of the form ...?q=0262527359, the results you get are the books that have any instance of this number in the record fields of any book. It can be either in editions isbn array or any other, this query will search all fields for matching results whereas the former query will only search isbn for matching results

SCA SuiteScript query item to code

I need to add an non-inventory item by internal id to the cart in SCA, how would I go about pulling that item and then adding it? The code samples I find are for pulling data always refer to views, I am thinking I need to pull it as an item, as I need to add it as an item using methods in LiveOrder.Model
thanks for anyhelp you may give
Really depends on which version of SCA you are using.
The quick answer is to look in the ItemDetails.View.js file in the Modules directory and find the code for the addToCart method.
The longer answer is that SCA's architecture and performance leave much to be desired. If you have things like multiple add to or update cart I found that it was easier to write my own cart.ss service and then just forward to the cart or refresh the page on completion.
So I found out that the easiest way to do this is like this, the items are returns in a object array, so thanks for your help
$.get('/api/items?id=10779&fieldset=details', function(obj) {
}).done(function(obj) {
});

Retrieve media Entry comments kaltura

Basically what the title says.
I can't find a relative service to their api. I have tried many ways but nothing worked so far. I'd really appreciate any help.
Thank you
You should use CuePoint service with List action and filter with KalturaCuePointFilter property EntryIdEqual - put entry's ID, which comments you want to recieve, and you will get list of all comments belonging to that entry.

reading RSS returns different response on localhost

im trying to parse an rss feed on localhost, and it brings back the right results, but when i try to do that from another (preproduction server) and live, it returns a list of comments made by users on the hydrapinion website which is completely unrelated, have i been spoofed? how can i debug this? its just an rss feed and a simple LINQ code!
string bingurl = "http://www.bing.com/search?form=QBRE&filt=rf&qs=n&format=rss&count=10&q=+environment+(site:www.australianit.news.com.au)";
XDocument doc = XDocument.Load(bingurl);
IEnumerable<XElement> items = (from i in doc.Descendants("item")
orderby DateTime.Parse(i.Element("pubDate").Value) descending
select i).Take(10);
rpData.DataSource = items;
rpData.DataBind();
i tried a different combination, and i get no results at all! do u think the server settings have antyhing to do with retrieving rss results?
i found some decent guide for bing search, but as it turned out, bing doesnt bring decent resuls! and it appears to me it changes the results set according to where ur calling it from, i tried adding "loc:" to the rss, when called from code it returned different results than when called on bing website itself, i dont know the algorithm they are using but it is getting more obvious
the guide is here:
http://help.live.com/help.aspx?mkt=en-AU&project=a

Can I specify what type of URLs to search for? - Google Search

Ok I'm searching for twitter profiles with Google Ajax Search
I'm using the following query:
?q=Radiant+Hex+site:twitter.com
I'm looking for urls like these:
twitter.com/radianthex
twitter.com/ignighted
...
But I often stumble in URLs of the form:
twitter.com/lindsaylohan/status/7537167235
twitter.com/calvinharris/status/1905934068
Is there a way of removing these url from my search?
Help would be very much appreciated.
Looks like this works:
http://www.google.com/search?q=horse+site%3Atwitter.com+-inurl%3Astatuses+-inurl%3Astatus
the query being:
horse site:twitter.com -inurl:statuses -inurl:status
specifically it looks like you can use negation on the inurl keyword
yeah if using the negate option in google, you could do that to get rid of some more sub-paths:
site:twitter.com (inurl:radianthex OR inurl:ignighted OR inurl:billgates)
-inurl:status -inurl:statuses -inurl:favorites -inurl:lists
is it possible to use the twitter api directly? they have a nice method to search for users...
the twitter call would look like this:
http://api.twitter.com/1/users/search.xml?q=radianthex
theyll give you a password when you signup for free access...
they have some cool search options to tighten the results to make them more relevant for your app

Resources