<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Using Method API to update ecommerce site</title><link>http://forums.method.me/cs/forums/thread/13329.aspx</link><pubDate>Fri, 03 Aug 2012 15:10:24 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:13329</guid><dc:creator>Method_David</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/13329.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=13329</wfw:commentRss><description>&lt;p&gt;Hi Chowrentoys.com&lt;/p&gt;
&lt;p&gt;You cannot use Method API to invoke the functions of another API. What you need to do is invoke each API&amp;#39;s functions as needed.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll illustrate with a brief example in C#(assuming you have all the webservice references added already)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;MethodAPI &lt;/b&gt;to get products with quantity of 0&lt;/p&gt;
&lt;p&gt;MethodAPI.MethodAPISelect_DataSetV2(CompanyAccount, Login, Password, ref InventoryDS, &amp;quot;&amp;quot;, &amp;quot;YourInventoryTable&amp;quot;, &amp;quot;Recordid&amp;quot;, &amp;quot;qty = 0&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;When processing this dataset you would then invoke the &lt;b&gt;Store API&lt;/b&gt; to turn off each item in the dataset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The same sort of set up is needed when you process an order.&lt;/p&gt;
&lt;p&gt;Use the &lt;b&gt;Store API&amp;nbsp;&lt;/b&gt; to get what was sold&lt;/p&gt;
&lt;p&gt;Use &lt;b&gt;MethodAPI &lt;/b&gt;to update quantiy on hand (for let&amp;#39;s say product 75, you now have 5 items left)&lt;/p&gt;
&lt;p&gt;string[ arrUpdateFieldsArray = new string[ { &amp;quot;Quantity on hand&amp;quot; };&lt;br /&gt;string[ arrUpdateValueArray = new string[ { &amp;quot;5&amp;quot; };&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;MethodAPI.MethodAPIUpdateV2(CompanyAccount, Login, Password, &amp;quot;&amp;quot;, &amp;quot;YourInventoryTable&amp;quot;, arrUpdateFieldsArray, arrUpdateValueArray, &amp;quot;75&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item><item><title>Using Method API to update ecommerce site</title><link>http://forums.method.me/cs/forums/thread/13325.aspx</link><pubDate>Wed, 01 Aug 2012 22:10:33 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:13325</guid><dc:creator>chowrentoys.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/13325.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=13325</wfw:commentRss><description>&lt;p&gt;&lt;span style="overflow:hidden;line-height:0px;"&gt;&lt;span style="overflow:hidden;line-height:0px;"&gt;&lt;span style="overflow:hidden;line-height:0px;"&gt;&lt;span style="overflow:hidden;line-height:0px;"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_211_start"&gt;&lt;span style="overflow:hidden;line-height:0px;"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_223_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_250_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_252_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_263_end"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_249_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_263_start"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_265_start"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_265_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_266_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_267_start"&gt;We are in the process of evaluating a new e-commerce store hosting software. My question is that can we use Method API to link up with an store&amp;rsquo;s API? Here are what we would like to do. Initial: Transfer all of product data from our current store to the new store via file export/import. We then would like to use the APIs to turn off all products that has qty of 0 in method. After the new store is build out use Method API to dynamically control the quantity and price in the new store so basically Method will control our inventory. We have already use Method to build a portal for our wholesale customer and would like to have our retail operation to be more tightly control by method. Thank you.&lt;span style="overflow:hidden;line-height:0px;" id="mce_268_start"&gt;&lt;span style="overflow:hidden;line-height:0px;" id="mce_269_start"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>