Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Connect to Rest via curl

I am trying to connect to a wufuu.com restful service.
How can I get connected to a restful service if the authentification needs to be done via curl?
Here is the curl-Link (not real login-information):

curl -u AOI6-LFKL-VM1Q-IEX9:footastic https://fishbowl.wufoo.com/api/v3/use...

Explanation:

Code: Select all

 curl :  

This is the call to your cURL library.

Code: Select all

 -u :  

Tells the cURL library that you’ll be sending the credentials in the form of {username}:{password}

AOI6-LFKL-VM1Q-IEX9:footastic :
The first value before the colon is your API key. You’ll obviously change this to your API key.

Code: Select all

 footastic :  

This value is required to meet cURL’s spec, but is ignored at the server, so let’s just send footastic through for giggles.

Code: Select all

 [url=https://fishbowl.wufoo.com/api/v3/users.xml]https://fishbowl.wufoo.com/api/v3/use...[/url] :  

This is your URL.

Thanks
Bernie

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Connect to Rest via curl

Try this for URL:

code
http://AOI6-LFKL-VM1Q-IEX9:footastic@https://fishbowl.wufoo.com/api/v3/users.xml
/code

This will probably not work when you do Test, but should work when you invoke the service from a page.

http://blog.tiggzi.com/2011/11/rest-a...

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Connect to Rest via curl

The test worked that way.
I used a similar url to access some fields. The test worked out fine as well, but when I try to populate the response structure an error message comes up:

'Failure. Incorrect response data. Must be valid JSON formatted response."
Same when I try it as xml.

I invoked the service as a load event on the used form.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Connect to Rest via curl

Are you able to share the JSON response?

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Connect to Rest via curl

I sent it by email

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Connect to Rest via curl

Did you send it to a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a..? I don't see anything. Paste the JSON response here, you can replace any private data with test data.

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Connect to Rest via curl

This is what I get:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...

Code: Select all

 Tiggzi - Cloud-based Mobile App Builder 

 <!--[if lt IE 7] 
 <style media="screen" type="text/css" 
     .container { 
         height: 100%; 
     } 
 </style 
 <![endif]-- 

div class="tggr-page"
div class="tggr-page-header"
div class="musicians-home-header clearfix"
div
a class="tggr-page-header-logo" href="/home" rel="nofollow"
/adiv

Code: Select all

          

         div 
 div class="hlp-mrg-r-10 left" 
  a class="tggr-button button-explore" href="/features" rel="nofollow"Features/a 
  

 div class="hlp-mrg-r-10 left" 
  a class="header-link" href="/plugins" rel="nofollow"Plug-ins/a 
  
 div class="hlp-mrg-r-10 left" 
  a class="header-link" href="/pricing" rel="nofollow"Pricing/a 
  
 div class="hlp-mrg-r-10 left" 
  a class="header-link" href="/about-us" rel="nofollow"About Us/a 
  
 div class="right pos-rel" 
  div class="hidden" 
  
 

   
 div class="home-page-header-hr" 

div


div class="tggr-404-caption"Oh No!


div class="tggr-404-text"
We are sorry. It seems the page you were
trying to find is
not here.

Here is what you can do:

div
ul /ul
liReport this problem on
http://tiggzi.com/forum./li
liEmail us at a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a
about this problem./li
liTry again from the beginning?/li
liVisit our help site./li





<!-- for tggr-page --
div class="tggr-footer"
div class="tggr-footer-row clearfix"
div class="half left"
div class="left"
h2Services/h2
Mobile App Builder
Web Prototypes Builder
Exadel Custom Development


Code: Select all

div class="left" 
 h2Resources/h2 
  [url=http://blog.tiggzi.com/]Blog[/url] 
  [url=http://help.tiggzi.com/]Help[/url] 
  a href="/about-us" rel="nofollow"About Us/a 


div class="half right"
div class="half left"
div©2012 Exadel Inc. All rights reserved.
a href="#" name="idPrivStatlink" rel="nofollow"Privacy Statement/a
&
a href="#" name="idTOfUselink" rel="nofollow"Terms of Use/a


Code: Select all

 divBuild: spanunknown/span 
   
  
 

div class="half right txt-rght" 
 span class="bold"Follow us: /span 
 [url=http://blog.tiggzi.com/][img]/respub/images/ic-wordpress.png[/img][/url] 
 [url=http://twitter.com/tiggziapps][img]/respub/images/home/twitter_footer.png[/img][/url] 
 [url=http://facebook.com/gotiggr][img]/respub/images/home/facebook_footer.png[/img][/url] 




div

<!-- Terms of use modal panel --
div class="modal-panel rich-mpnl-body"
div
Image

#touContent {
font-size: 14px;
line-height: 1.4em;
}

#touContent h2 {
font-size: 1.2em;
color: white;
}

div

Code: Select all

                                             h2 class="term-title"SUBSCRIPTION LICENSE AGREEMENT &#8211; 
                                                 TIGGZI/h2 

                                             
                                            h2 class="term-title"TERMS OF SERVICE/h2 
                                             
                                            h2BY COMPLETING ONLINE REGISTRATION FOR THE 
                                                 TIGGZI SERVICE (&#8220;SERVICE&#8221;), PAYING ANY SUBSCRIPTION FEE, 
                                                 USING 
                                                 THE SERVICE, AND/OR INSTALLING ANY RELATED SOFTWARE, YOU 
                                                 IRREVOCABLY AGREE TO ALL OF THE TERMS AND CONDITIONS SET FORTH 
                                                 IN THIS SUBSCRIPTION LICENSE AGREEMENT, WHICH CONSTITUTES THE 
                                                 TERMS OF SERVICE (&#8220;TERMS OF SERVICE&#8221;) BETWEEN YOU AND 
                                                 EXADEL, 
                                                 INC., A CALIFORNIA CORPORATION (&#8220;EXADEL&#8221;) AND GOVERNS 
                                                 YOUR USE 
                                                 OF THE SERVICE, AS SUCH SERVICE MAY BE MODIFIED BY EXADEL FROM 
                                                 TIME TO TIME. 
                                             /h2 
                                             
                                            h2 
                                                 IF YOU DO NOT AGREE TO ANY OF THESE TERMS OF SERVICE, DO NOT 
                                                 REGISTER FOR OR USE THE SERVICE. IN PROVIDING THE SERVICE, EXADEL IS 
                                                 RELYING ON YOUR AGREEMENT TO THESE TERMS OF SERVICE. 
                                             /h2 
                                             
                                            h2Terms of Service/h2 
                                             
                                            Exadel reserves the right to update and change the Terms of 
                                             Service from time to time without notice. Any new features that 
                                             augment or enhance the current Service, including the release of 
                                             new tools and resources, shall be subject to the Terms of 
                                             Service. 
                                             
                                            
                                            Continued use of the Service after any such changes shall 
                                             constitute your consent to such changes. You can review the most 
                                             current version of the Terms of Service at any time at: 
                                             
                                            
                                            [url=http://www.tiggzi.com/info/termsOfUse.seam]/aa href="http://www.tiggzi.com/info/termsOfUse.seam" rel="nofollow"http://www.tiggzi.com/info/termsOfUse...[/url] 
                                             
                                            
                                            Violation of any these Terms of Service is grounds for 
                                             immediate termination of your Account. You understand and agree 
                                             that Exadel is not responsible for any content posted on the 
                                             Service (&#8220;Content&#8221;) and that in using the Service you may be 
                                             exposed to materials that are prohibited by these Terms of 
                                             Service. You agree that any and all use of the Service is at 
                                             your own risk. 
                                             
                                            
                                            h2Account Terms/h2 

                                             
                                            ul class="terms" /ul
                                                 liYou must be 13 years or older to use this Service./li 

liYou must be a human. Accounts registered by bots or other
automated methods are not permitted.
/li


liYou must provide your legal full name, a valid email address,
and any other information requested in order to complete the
signup process. You represent and warrant that any and all
information you provide to Exadel is accurate and complete in
all respects.
/li


liYou are responsible for maintaining the security of your account
and password. Exadel cannot and will not be liable for any loss
or damage from your failure to comply with this security
obligation.
/li


liYou are responsible for all Content posted and activity that
occurs under your account (even when Content is posted by
others, including without limitation those who have accounts
under your account).
/li

liYou may not use the Service for any illegal or unauthorized
purpose. You must not, in the use of the Service, violate any
applicable laws (including but not limited to copyright laws).
You may not sublicense or otherwise transfer your Account or use
of the Service. You are solely responsible for all use of the
Service through your Account.
/li

Code: Select all

                                             
                                            
                                            h2Payment, Refunds, Upgrading and Downgrading Terms/h2 
                                             
                                            ul class="terms" /ul
                                                 liA valid credit card is required./li 

liThe Service is billed in advance on a monthly basis and is
non-refundable. There will be no refunds or credits for partial
months of service, upgrade/downgrade refunds, or refunds for
months unused with an open account. In order to treat everyone
equally, no exceptions will be made.
/li


liAll fees are exclusive of all taxes, levies, or duties imposed
by taxing authorities, and you shall be responsible for payment
of all such taxes, levies, or duties, excluding only Exadel&#8217;s
income taxes.
/li


liFor any upgrade or downgrade in plan level, your credit card
that you provided will automatically be charged the new rate on
your next billing cycle.
/li


liDowngrading your Service may cause the loss of Content,
features, or capacity of your Account. Exadel is not and shall
not be liable for any such loss.
/li

Code: Select all

                                             
                                            
                                            h2Cancellation and Termination/h2 
                                             
                                            ul class="terms" /ul
                                                 liYou are solely responsible for properly canceling your account. 
                                                     An email or phone request to cancel your account is not 
                                                     considered as cancellation. You can cancel your account at any 
                                                     time by clicking on the Account link in the global navigation 
                                                     bar at the top of the screen and following the simple 
                                                     cancellation link. 
                                                 /li 

liAll of your Content will be immediately deleted from the Service
upon cancellation. This information can not be recovered once
your account is cancelled. Exadel is not and shall not be liable
for the loss of any Content.
/li


liIf you cancel the Service before the end of your current paid up
month, your cancellation will take effect immediately and you
will not be charged again. There will be no proration of un-used
subscription or refund of un-used fees.
/li

liExadel, in its sole discretion, has the right to suspend or
terminate your account and refuse any and all current or future
use of the Service, or any other Exadel service, for any reason
at any time. Such termination of the Service will result in the
deactivation or deletion of your Account or your access to your
Account, and the forfeiture and relinquishment of all Content in
your Account. Exadel reserves the right to refuse service to
anyone for any reason at any time. Exadel is not and shall not
be liable for any related losses.
/li

Code: Select all

                                             
                                            
                                            h2Modifications to the Service and Prices/h2 
                                             
                                            ul class="terms" /ul
                                                 liExadel reserves the right at any time and from time to time to 
                                                     modify, supplement, expand, or discontinue, temporarily or 
                                                     permanently, the Service (or any part thereof) with or without 
                                                     notice. 
                                                 /li 

liPrices of all Services, including but not limited to monthly
subscription plan fees to the Service, are subject to change
upon 30 days notice from Exadel.
/li


liExadel shall not be liable to you or to any third party for any
modification, price change, suspension or discontinuance of the
Service.
/li

Code: Select all

                                             
                                            
                                            h2Copyright, Trademark, and Content Ownership/h2 
                                             
                                            ul class="terms" /ul

                                                 liAll content posted on the Service must comply with U.S. 
                                                     copyright law. 
                                                 /li 

liExadel claims no intellectual property rights over the material
you provide to the Service. As between you and Exadel, your
profile and materials uploaded remain yours. However, by sharing
your pages, you agree to allow others to view and share your
Content. Exadel is not responsible for the use of your Content
by others.
/li


liExadel does not pre-screen Content and is not responsible for
Content, whether provided by you or any other user of the
Service. However, Exadel and its designees have the right (but
not the obligation) in their sole discretion to refuse or remove
any Content that is available via the Service.
/li


liThe look and feel of the Service is copyright&copy;2011 Exadel.
All rights reserved. You may not duplicate, copy, or reuse any
portion of the HTML/CSS or visual design elements without
express written permission from Exadel, which permission may be
withheld, conditioned, or delayed in Exadel&#8217;s sole
discretion.
/li


liAs between you and Exadel, Exadel is the sole and exclusive
owner of the Tiggzi name and logo. Your use of the Service
confers no ownership or other rights to the Tiggzi name or logo,
or any other name or logo used by Exadel, or the goodwill
associated therewith, all of which shall inure to the benefit of
Exadel. Exadel makes no representation or warranty regarding
non-infringement.
/li

Code: Select all

                                             
                                            
                                            h2General Conditions/h2 
                                             
                                            ul class="terms" /ul
                                                 liYour use of the Service is at your sole risk. The service is 
                                                     provided on an &#8220;as is&#8221; and &#8220;as available&#8221; 
                                                     basis. Without limiting the foregoing, Exadel is not responsible 
                                                     for any losses or corruption of Content. 
                                                 /li 

liTechnical support is only provided to paying account holders and
is available via email.
/li


liYou understand that Exadel uses third party vendors and hosting
partners to provide the necessary hardware, software networking,
storage, and related technology required to run the Service.
/li


liYou agree that you will not modify, adapt or hack the Service or
modify another website so as to falsely imply that it is
associated with the Service, Exadel, or any other Exadel
service.
/li


liYou agree not to reproduce, duplicate, copy, sell, reverse
engineer, decompile, resell or exploit the name of the Service,
any portion of the Service, use of the Service, or access to the
Service without the express written permission by Exadel, which
permission may be withheld, conditioned, or delayed in Exadel&#8217;s
sole discretion.
/li


liWe may, but have no obligation to, remove Content and Accounts
containing Content that we determine in our sole discretion are
unlawful, offensive, threatening, libelous, defamatory,
pornographic, obscene or otherwise objectionable or violates any
party&#8217;s intellectual property or these Terms of Service.
/li

liVerbal, physical, written or other abuse (including threats of
abuse or retribution) of any Exadel customer, employee, member,
or officer will result in immediate account termination.
/li


liYou understand that the technical processing and transmission of
the Service, including your Content, may be transferred
unencrypted and involve (a) transmissions over various networks;
and (b) changes to conform and adapt to technical requirements
of connecting networks or devices.
/li

liExadel has established relationships with certain third parties
who provide services or products (such as web APIs and services, developer
tools and operating systems) you may find useful in using the Service, and
Exadel may establish additional, similar relationships in the future.
Such third party products and services may be made available through Exadel's
website, through links provided by Exadel, or directly from the third party provider.
In order to use such third party products or services or increase the functionality
of the Service, you may be asked to provide certain personal information, including
without limitation passwords, certificates, authorizations, and other information.
You acknowledge and agree that any and all personal information provided to Exadel
may be: (i) used by Exadel in connection with the Service and such third party relationships;
(ii) shared with such third parties in connection with the Service and the products
and services provided by such third parties; (iii) transferred across national
boundaries and stored and processed in any of the countries in which Exadel
maintains an office; and (iv) supplemented by Exadel with additional information
you provide to Exadel in connection with the Service. Exadel shall not be
responsible for any decreased functionality of the Service or products provided
by Exadel resulting from your failure to provide requested information, or from
the inaccuracy or incompleteness of any such information. Exadel shall not be
responsible for any information provided directly by you to any third party, whether
in connection with the Service or otherwise./li

liYou must not upload, post, host, or transmit unsolicited email,
SMSs, or spam messages.
/li


liYou must not transmit any worms or viruses or any code of a
destructive nature.
/li


liBY USING THE SERVICE, YOU VOLUNTARILY AND IRREVOCABLY ASSUME ALL
RELATED RISKS. EXADEL MAKES NO REPRESENTATION, WARRANTY, OR
COVENANT REGARDING THE SERVICE OR ANY CONTENT, INCLUDING WITHOUT
LIMITATION ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, TITLE, OR NON-INFRINGEMENT, AND ALL SUCH
REPRESENTATIONS, WARRANTIES, AND COVENANTS ARE HEREBY FULLY
DISCLAIMED. Without limiting the foregoing, Exadel does not
warrant that (i) the service will meet your specific
requirements, (ii) the service will be uninterrupted, timely,
secure, or error-free, (iii) the results that may be obtained
from the use of the service will be acc

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

Connect to Rest via curl

This is returned when using the browser while I am logged in at Wufoo.com

{"Fields":[{"Title":"Entry Id","Type":"text","ID":"EntryId"},{"Title":"GeoCockpit 360 Provider","Instructions":"Please name the chamber, city or town which is providing GeoCockpit 360 for you.\nIf you are not sure, please check the url of the GeoCockpit 360 you want to participate (e.q. [url=http://www.geocockpit.net\/cloversc).","IsRequired":"0","ClassNames":"","DefaultVal":"Chamber]www.geocockpit.net\/cloversc).","IsRe...[/url] of ... \/ City of...","Page":"1","Type":"text","ID":"Field37"},{"Title":"Select a Choice","Instructions":"","IsRequired":"1","ClassNames":"","DefaultVal":"","Page":"1","Choices":[{"Label":"New entry"},{"Label":"Update an already existing entry"}],"Type":"radio","ID":"Field25"},{"Title":"Name","Instructions":"Type in the name of your business. Please mind, that this will be the content based upon people can search at GeoCockpit 360\n(Example: Baker Inc. - Roofing & Restauration)","IsRequired":"0","ClassNames":"","DefaultVal":"","Page":"1","Type":"text","ID":"Field15"},{"Title":"Select a Category","Instructions":"Please select a category for your business","IsRequired":"1","ClassNames":"","DefaultVal":"","Page":"1","Choices":[{"Label":"Accomodation"},{"Label":"Arts & Entertainment"},{"Label":"Auto"},{"Label":"Churches\/Places of Worship"},{"Label":"Drinks & Dining"},{"Label":"Education"},{"Label":"Financial"},{"Label":"Government"},{"Label":"Health & Public Safety"},{"Label":"Industrial"},{"Label":"Popular Sites"},{"Label":"Real Estate & Construction"},{"Label":"Services"},{"Label":"Shopping"},{"Label":"Sports & Recreation"}],"Type":"select","ID":"Field23"},{"Title":"Website","Instructions":"","IsRequired":"0","ClassNames":"","DefaultVal":"","Page":"1","Type":"url","ID":"Field27"},{"Title":"Address","Instructions":"Please enter your business address","IsRequired":"0","ClassNames":"","DefaultVal":"","Page":"1","SubFields":[{"DefaultVal":"","ID":"Field29","Label":"Street Address"},{"DefaultVal":"","ID":"Field30","Label":"Address Line 2"},{"DefaultVal":"","ID":"Field31","Label":"City"},{"DefaultVal":"","ID":"Field32","Label":"State \/ Province \/ Region"},{"DefaultVal":"","ID":"Field33","Label":"Postal \/ Zip Code"},{"DefaultVal":"United States","ID":"Field34","Label":"Country"}],"Type":"address","ID":"Field29"},{"Title":"Description","Instructions":"","IsRequired":"1","ClassNames":"","DefaultVal":"Give a short description about your business\/organization \/\/ Contact information\/\/ Phone numbe\/\/Email","Page":"1","Type":"textarea","ID":"Field35"},{"Title":"Select a Choice","Instructions":"Please select a category","IsRequired":"1","ClassNames":"","DefaultVal":"","Page":"1","Choices":[{"Label":"Auto"},{"Label":"Health"},{"Label":"Financial"}],"Type":"radio","ID":"Field17"},{"Title":"Date Created","Type":"date","ID":"DateCreated"},{"Title":"Created By","Type":"text","ID":"CreatedBy"},{"Title":"Last Updated","Type":"date","ID":"LastUpdated"},{"Title":"Updated By","Type":"text","ID":"UpdatedBy"}]}

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Connect to Rest via curl

Please delete one of your replies, it messed up GetSastifaction.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Connect to Rest via curl

The JSON that's being returned is invalid and thus creating the response doesn't work. Go to http://jsonlint.com/ -- you can test it there.

Return to “Issues”