I would like to make requests for ItemSearch using Amazon Product Advertising API with meteor.
http://s3.amazonaws.com/awsdocs/Associates/latest/prod-adv-api-dg.pdf
https://images-na.ssl-images-amazon.com/images/G/01/webstore_t_d/API/WebstoreAPI_SearchProductUsersGuide.pdf
Essentially, I would like the users on my web application to search and select books that they have read which will then be displayed in their profile.
As the user types in the field, I would like the api to return a limited number of suggestions. When one item is selected, I would like to store the title and author of the book and url of the books' advertisement page on amazons website.
I have been sourcing the documents and branching out from the following two links. I am beginning to understand in an abstract way of how the error and data callbacks work. Everything I am reading is abstract.
I need to help in setting up the searchItem feature which falls under Amazon Product Advertising API
. I will limit the search index to the 'books' product category. According to amazon, I am effectively advertising for amazon in my use case so I joined their affiliates program https://affiliate-program.amazon.com/
But really, my use case intensions are for my users to list books they have read on their profile page. I need to capture 3 data points (title, author, and, url of the advertising page for the book on amazon.com).
Has anybody attempted to use this API? If so, please can you shed light on how you set up to make requests to the API in meteor.
The Amazon Product Advertising API does not fall under Amazon Web Services, but instead, Amazon Associates.
The AWS SDK does not support non-AWS services (including other Amazon services), and likely never will. You'll need to find an entirely different package for hitting the Amazon Product Advertising API.
Related
I am trying to track user engagement on a cross domain. I have seen similar questions on stack overflow already like Tracking purchase of particular product on different sites and jQuery Cross Domain Request to get JSON Response without Callback But the problem with my case is that I do not want server call back and Google analytics to be used with my application
About my application, basically we have made a spring boot application and we provide our application as a resource to another e-commerce store. Now, what our application will do, it will replace the search bar of that e-commerce store with our application's search bar. when the user searches a product from that search bar then our application will bring the result (products) from that e-commerce store.
Now what I want to do, I want to track my user such that after searching, if the user clicks on any product from the search result then he will be redirected to the checkout page of the same e-commerce store. I want to track that if that user bought that product or just got there and returned without purchasing the product.
If I try to do it through javascript, then I get cross-origin error (CORS-policy) which is kind of obvious as we can not access any other application from our site.
I also tried YQL Yahoo Query Language as suggested by jQuery Cross Domain Request to get JSON Response without Callback but still got CORS origin error.
I have looked a way for server callback where, every time when user clicks a product from the search result then an reference id will send with him. After the customer purchases a product then the server will give us a callback and will again return a reference id back to us.
But this type of approach was rejected by my company saying it will be very expensive for us.
I was looking for a simple solution that will track user engagement on Cross Domain with a simple and free tool except for Google analytics OR by writing a javscript on my end without involving the other server.
I have researched a lot but could not find a good answer. Please help me. Thanks in advance.
I am building a products review app with react for a certain company. They require the user's location(country) to show suitable products to review in case users open the app on their own.
So, I only found getLocale() in instant games SDK and it's impossible for me to know the user's country through this function, only language is available. I tried react-facebook-login but there doesn't seem to be a permission that gives you location(country) either. I only found one named 'user_location'. However, I couldn't find it on the permissions to request list on facebook dashboard. I also read that I cannot use any third party library that gives me access to user's information outside facebook's sdk.
Any thoughts on how to go through this?
Thank you.
i have a project i am working on
the requirements are to build a service to manage customers
the service has the following functionaltiy
Create Customer
Find Customer by Id
Update Customer
Delete Customer
each customer has and id, Name, Email, Address and related credit card tokens
When Customer is created it can be linked to one or more credit cards
and when updating a customer it can be linked to a credit card
The Credit Cards are managed in a different service (one that is not built by me) that i know nothing about (can make some assumptions)
The service i built is a web api project with an sql server database
i used asp.net entity data model for that and i implemented all of the CRUD operations using the rest api
my question is how can i create the link between the 2 services to allow me to link a credit card from a different service to my customer.
the requirments are that if some one wants to view the data of the credit cards it will need to use the other service so i dont need to have access to the credit card data, only to allow to link a credit card to a customer
any ideas on how this can be done?
Unfortunately your question is a little ambiguous and, after reading your comments, it seems your question is essentially asking how to "link" to a different service, which does not exist. If you don't know anything about the other service (and certainly if it does not exist), it will be very difficult to help you "link" to it.
You mentioned that the other service may be developed. In that case, I can suggest the following:
Connect to the underlying database that the external information is being stored in, much as you are connecting to your own database now (see connecting to databases in mvc for more information)
If you are not granted access to the external database, you will most likely utilize some form of web service to make queries against the external database (see consuming web services in mvc).
From your backend, the logic basically goes: access their database or call their web service, get the id for the credit card and either pass that id through or generate your own (internal) unique id for a credit card (and creata a separate table that stores the original id as well) and associate that with your customer (in an array or object, etc). That way, when you need to retrieve credit card information, you have your customer entry with the information (id(s)) of any associated credit cards. You can use that information to query from the external service to get the required credit cards and then combine the information
I have been searching for a way to get just the list of users from my facebook app. I've tried several FQL variations to no avail. I do NOT want the list of users that are my friends who are users of the app but an entire list of user names from my facebook app.
All the questions pertaining to this type of request get many answers but all of them focus on FRIENDS of a user who use the app.
I just need a list of IDs or names that are using my app and have authorized the app with extended permisions.
Any ideas? I am using client-side javascript sdk.
Thanks.
No, there's no API for this. You should already have this information from your own logs though, assuming you're storing information about your app's users in a database somewhere
I agree with #Igy; that kind of statistical data is the responsibility of the developer. Facebook provides other (very useful) statistics on usage and performance with their insights feature, but to track individual users the developer will need to implement his or her own logs.
I'm building a website for a group that mirrors a facebook group, and I'd like to pull any photos of the group from facebook and display them on my site. BUT the photos might be uploaded by perfect strangers: so basically, a random person takes a picture of the group and uploads it to facebook, and we want that photo to be visible on our website.
I could think of three ways to do this:
tag the photo as the group and find all photos tagged as the group
It seems you can't get Graph API access to photos tagged as a particular group (please prove me wrong). I can do this in FQL: SELECT images FROM photo WHERE pid in (SELECT pid FROM photo_tag WHERE subject=GROUP_ID), but from what I can tell, this requires the website visitor to log into facebook to create a FB session, which is no good.
'share' the photo on our FB Page and somehow find all photos we've shared on our page
I can't seem to think of a way to restrict a search of shared objects to photos, but I'm open to suggestions.
re-upload the photo ourselves into a group-controlled photo album
meh. The first two options don't involve creating any new objects on facebook, and would be preferred, but I'm having a hard time doing either of them, which leaves me with downloading the photos from facebook and uploading them all over again in our own photo album, which I know how to show.
Please tell me there's a better way to do it than #3?
I've wrote a little PHP app which turned my Facebook news feed (/me/home) into RSS, and make it possible to subscribe by Google Reader. Although my project has nothing to do with publishing, I think you'll need some similar technique with the offline_access I've used there.
So, first of all, you'll need dummy Facebook user account which have the permission to read and publish in the group (since that's a public group so save you from some trouble)
Get the access_token of this user with "offline_access" and other scopes required for publishing like direct url example here http://developers.facebook.com/docs/reference/dialogs/oauth/
Then... hard code the access token into the PHP script
$access_token = the access token from oauth;
$facebook->setAccessToken($access_token);
Therefor, this script would act as that user. Anyone browsing the mirrored website doesn't even need a Facebook account.
After solving the authentication issue, the rest just simple coding for querying, uploading, publishing. Hope this would help