Best Buy - Products API problems - best-buy-api

I have a problem with BestBuy's Products API. I'm trying to search something like "samsung galaxy s3". I've tried with file_get_contents in my php page. My call is similar to: http://api.remix.bestbuy.com/v1/products((search=samsung&search=galaxy&search=s3)&salePrice>VALUE)?show=name,salePrice&format=xml&apiKey=MYAPIKEY;
This will return nothing. How can I search for phones?

It depends on how complete you would like your answer. If you are looking for your Samsung Galaxy S III fulfilled by Best Buy use:
http://api.remix.bestbuy.com/v1/products(name=%22Galaxy%20S%20III*%22&categoryPath.id=abcat0800000&categoryPath.id!=abcat0811002)?apiKey=YourAPIKey&show=sku,name,salePrice
If you would like to include Marketplace Samsung Galaxy S IIIs use:
http://api.remix.bestbuy.com/v1/products(name=%22Galaxy%20S%20III%22&categoryPath.id=abcat0800000&categoryPath.id!=abcat0811002&marketplace=)?apiKey=YourAPIKey&show=sku,name,salePrice,marketplace&pageSize=100
For queries I searched the name field for Galaxy S III with a wildcard. I then filtered those results to be just cell phones. The second query opened up the search to also include Marketplace items.

Related

Retrieve all the results from App Store for certain keywords

I am looking at the search API provided by Itunes, however I noticed it set limit to 200 which means if there are more than 200 results to be returned it will only return 200.
What I want to realize is I want to search certain keywords and retrieve all the apps related to this keyword, is it possible? Thanks a lot!
The following are examples of fully-qualified URLs for specific search requests:
• To search for all Jack Johnson audio and video content (movies, podcasts, music, music videos, audiobooks, short films, and tv shows), your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson
• To search for all Jack Johnson audio and video content and return only the first 25 items, your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson&limit=25
• To search for only Jack Johnson music videos, your URL would look like the following:
https://itunes.apple.com/search?term=jack+johnson&entity=musicVideo
• To search for all Jim Jones audio and video content and return only the results from the Canada iTunes Store, your URL would look like the following:
https://itunes.apple.com/search?term=jim+jones&country=ca
• To search for applications titled “Yelp” and return only the results from the United States iTunes Store, your URL would look like the following:
https://itunes.apple.com/search?term=yelp&country=us&entity=software
Please refer to below Apple docs:
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/#searchexamples
To Search on iOS apps for all countries:
https://itunes.apple.com/search?term=yelp&entity=software&limit=200
It sounds like the term you're looking for is offset, and you can add this to your search parameters, to view x results after your limit of x.
https://itunes.apple.com/search?term=yelp&entity=software&limit=200&offset=200
For example, the search above will give you the next 200 results (assuming there's more results for your search of course.)
Should work for search endpoints, but not lookup endpoints according to this post.

Placing API calls with test Credit Cards in BlueSnap Sandbox?

I'm trying to place API calls to charge shoppers in BlueSnap's Sandbox - using a simple Auth-Capture call and I'm not sure which test cards I can use:
<credit-card>
<card-number>4263982640269299</card-number>
<security-code>837</security-code>
<expiration-month>02</expiration-month>
<expiration-year>2018</expiration-year>
</credit-card>
I'm looking for reference on:
1. Can I just use any test card I find on Google?
2. Can I test card failures somehow?
3. Do online wallets work with the same type of cards?
I asked BlueSnap's Support team and this is what they say:
It doesn't matter if you use API or not - also the BlueSnap console (UI) allows using test cards.
Sometimes you can use Google to search for test cards - but if you're testing with BlueSnap, the best option is to use this page for reference.
The provides you with different card brands & currency scenarios and also you can choose specific cards to get the result you want (success or failure).
Be sure to scroll all the way to the bottom and see the Apple Pay test cards - for other wallets you can keep on using the cards at the top table.

spotify API query not producing Album metadata

I'm trying to build a app that gets info from the Spotify API but since I don't have the Spotify ids I want to grab the ids using search queries.
I wanted to just try it so I tested it with an album called yellow and a band called SCANDAL. However when I query, say, https://api.spotify.com/v1/search?q=album:yellow+artist:scandal&type=album it comes up with nothing. However when I Google the band, I got an artist id: 7hTZwqQILVH4bAbN67CeEz from the URL.
using the get albums query(https://api.spotify.com/v1/artists/7hTZwqQILVH4bAbN67CeEz/albums?album_type=album&limit=5) it shows that the album exists but the original query didn't find it. Am I doing something wrong or does it only work with more popular artists (I tried other albums and it was fine)?
There doesn't seem to be anything wrong with your query. I think you are hitting a bug.
Bug reports for Spotify Web API can be found in Github issues
According to this bug:
https://github.com/spotify/web-api/issues/194
setting no market parameter will make it default to US. Your query seems to confirm this bug. Since SCANDAL Yellow is not available in the US, you will not see it in the results. If you add market=SG for instance, it will show up.

Google custom search engine result counts changing as results are paged

I have implemented a Google custom search engine in a website. When searching a word, it brings out results like totalResults - 168 and I am retrieving it by 10 results per page.
Up to 60 results it works fine, but in the 7th page, the total results from Google api response changes to a total of 67.
I am using a free version of the Google custom search API. I don't know whether it is working correctly or not. Please provide me a solution if it is wrong or correct me if I am wrong.
It is because of google search behaviour well explained in following links.
https://productforums.google.com/forum/m/#!topic/customsearch/D4--2TfYk9A
https://productforums.google.com/forum/m/#!topic/customsearch/SjlrUMa-X-k

Source for various pictures in 120x120?

I am creating a web site with 2-stage authentication where users will have to verify a particular image on the screen (similar to how many banks and CC companies are currently doing this).
Where can I find a large source of images (not icons) that are about 120x120 (or larger) for use in this? Ideally, Id like to find a few hundred of these images and they do not have to be free.
You could search for Creative-Commons photos available for commercial use on flickr: http://www.flickr.com/search/?q=nature&l=comm&ss=0&ct=0&mt=all&w=all&adv=1
I've used freedigitalphotos.net in the past to get some pretty good images -- you can get the small ones (about 640x480) for free.
Well, there's Google's image search, the options let you specify the exact dimensions you're after, and they'll search most stock-photo/art sites, too.
iStockPhoto sells stock photography, you can just buy the lower rez stuff.