-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAmazonQuery.h
More file actions
24 lines (20 loc) · 778 Bytes
/
AmazonQuery.h
File metadata and controls
24 lines (20 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// AmazonQuery.h
// Revel
//
// Created by Max von Hippel on 9/1/16.
// Copyright © 2016 Max von Hippel. All rights reserved.
//
// This object is used to search Amazon for a product name and return results
//
// AmazonQuery* query = [[AmazonQuery alloc] init];
// [query searchResultArray:@"your_amazon_affiliate_id" query:@"whatever it is you want to buy"];
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class AmazonSearchResult;
@interface AmazonQuery : NSObject
// searches for products matching the query and returns an array of AmazonSearchResult's with affiliate links
// query is the search string, for example, spyderco
// amazonId is the amazon affiliate id
- (NSArray*)searchResultArray:(NSString*)amazonId query:(NSString*)query;
@end