-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Michael
committed
Oct 14, 2009
1 parent
dd07c92
commit 0dc187d
Showing
6 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,38 @@ | ||
module Amazon | ||
module MWS | ||
|
||
# Base API Class | ||
# is this needed?? | ||
class API | ||
end | ||
|
||
# Intended usage: | ||
# | ||
# AWS::MWS::Base.establish_connection!(config['production']) | ||
# | ||
# | ||
# Amazon::MWS::Inventory.submit_feed(:product=>{}) | ||
|
||
class Inventory < API | ||
def submit_feed | ||
AWS::MWS::Base.post("/?Action=SubmitFeed&FeedType=", body = ni) | ||
class << self # everything is a static/class method | ||
|
||
def submit_feed() | ||
body = Amazon::MWS::Feed.new(??) | ||
response = Amazon::MWS::Base.post("/", {"Action"=>"SubmitFeed", "FeedType"=>"something"}, body) | ||
end | ||
|
||
def get_feed_submission_list | ||
response = | ||
Amazon::MWS::Base.post("/", { | ||
"Action" => "GetFeedSubmissionList", | ||
"FeedType" => "something" | ||
}) | ||
end | ||
|
||
end | ||
end | ||
# Inventory | ||
end | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters