<?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: The API could not validate your log in</title><link>http://forums.method.me/cs/forums/thread/32263.aspx</link><pubDate>Wed, 01 Jun 2016 20:39:06 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:32263</guid><dc:creator>milos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/32263.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=32263</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Thank you so much. This work perfectly now :)&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: The API could not validate your log in</title><link>http://forums.method.me/cs/forums/thread/32262.aspx</link><pubDate>Wed, 01 Jun 2016 19:54:37 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:32262</guid><dc:creator>Method_Audisho</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/32262.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=32262</wfw:commentRss><description>&lt;p&gt;Hi milos,&lt;/p&gt;
&lt;p&gt;First off, welcome to the Method forum! I see that you&amp;#39;re looking for some help using our API and you&amp;#39;ve certainly come to the right place.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not too familiar with PHP myself, but I think I may see an issue with your code. When making a call to the API, you&amp;#39;ll need to pass both a key (or field) and a value. In your example, it appears that you&amp;#39;re just passing the value.&lt;/p&gt;
&lt;p&gt;There are some examples of how to do this included on the PHP website &lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;a href="http://php.net/manual/en/soapclient.soapcall.php" target="_blank"&gt;HERE&lt;span id="mce_1_end" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/a&gt;. By the looks of it, you&amp;#39;ll need to include the parameters in an associative array.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;br /&gt;arguments&lt;br /&gt;An array of the arguments to pass to the function. This can be either an ordered or an associative array. Note that most SOAP servers require parameter names to be provided, in which case this must be an associative array.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at the documentation and post back if you&amp;#39;re still having trouble with this. I hope this helps.&lt;/p&gt;
&lt;p&gt;--Audisho&lt;/p&gt;</description></item><item><title>The API could not validate your log in</title><link>http://forums.method.me/cs/forums/thread/32261.aspx</link><pubDate>Wed, 01 Jun 2016 18:58:01 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:32261</guid><dc:creator>milos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/32261.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=32261</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I am using php for soap request. This is my code&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;$client &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;new &lt;/span&gt;&lt;span&gt;SoapClient(&lt;/span&gt;&lt;span&gt;&amp;#39;https://www.methodintegration.com/MethodAPI/service.asmx?wsdl&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;$response &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;$client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;MethodAPITableListV2&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;#39;&lt;span id="mce_3_start" style="overflow:hidden;"&gt;comapnyN&lt;span id="mce_5_start" style="overflow:hidden;"&gt;ame&lt;/span&gt;&lt;/span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;#39;myusername(email)&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;#39;password&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;I tested my credibility on https://www.methodintegration.com/MethodAPI/service.asmx?op=MethodAPITableListV2 and everything is good. When I tried to use my php code in my project I get this:&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;p&gt;stdClass Object&lt;br /&gt;(&lt;br /&gt; [MethodAPITableListV2Result] =&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;windows-1252&amp;quot; ?&amp;gt;&amp;lt;MethodAPI response = &amp;quot;Failure. The API could not validate your log in. Please make sure you have entered the correct Company Account, User and Password, and that each are spelt correctly. Also, ensure that this User has been configured for Method API access by going to Customize &amp;gt; Users, editing the User, and ensuring that there is a check in the &amp;#39;Is Allowed to Connect via MethodAPI&amp;#39; checkbox.&amp;quot;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt; &amp;gt;&amp;lt;/MethodAPI&amp;gt;&lt;br /&gt;)&lt;span id="mce_9_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can U help me with this error?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;</description></item></channel></rss>