Method Community

 

Using Method API from Javascript / JQuery

Last post 06-13-2013 3:01 PM by Method_Ashur. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-12-2013 11:53 PM

    Using Method API from Javascript / JQuery

    Anyone calling the Method API from javascript (jquery)?

    Examples?

    Blake C
  • 06-13-2013 10:08 AM In reply to

    Re: Using Method API from Javascript / JQuery

    It seems Method doesn't allow * origins for API requests so I'm facing ye olde cross-domain content loading security roadblock. 

    When making calls to MethodAPISelect_XMLV2I can see in my Chrome console an error message indicating my origin (my HTML is running from GoogleDrive) is not allowed.

    I understand I can use a proxy to make these calls but that just isn't the way to go. I was going with an HTML solution to try and keep it more lightweight (no compile, deploy, execute) but I'll pivot and go with a better overall solution and create a small desktop app (C#) in order to bridge @Method and @GoogleCalendar.

    If anyone has some insight on this issue, feel free to weigh in.

    Thx


    Blake C
  • 06-13-2013 11:00 AM In reply to

    Re: Using Method API from Javascript / JQuery

    Blake

    I know you want to avoid the IT comlexities but we've had great success with the proxy route.  The key component is the IT infrastructure.  Once we started using AZURE as the infrastructure we can deploy a new proxy service in a matter of minutes. Since AZURE is microsoft everything is controled within visual studio.  Depending on server load you may be able to get away with a free AZURE website to host the service.


    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
  • 06-13-2013 11:13 AM In reply to

    Re: Using Method API from Javascript / JQuery

    Thx Mark. I have a couple questions about that...will hit you up via email.

    Thanks again

    Blake C
  • 06-13-2013 3:01 PM In reply to

    Re: Using Method API from Javascript / JQuery

    Moving this to the API forum.

    - Ashur

    Need more help? Ask us about Method consulting services

    Ashur Shamon
    Lead Solutions Specialist, Professional Services
    Method Integration Inc.
    www.method.me
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
    Fax: 416.640.6027
    E-mail: a.shamon@method.me
Page 1 of 1 (5 items)