• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tearing my bloody hair out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tearing my bloody hair out


  • Subject: Re: Tearing my bloody hair out
  • From: Jim Weisbin <email@hidden>
  • Date: Fri, 15 Sep 2017 15:54:15 -0400

>  Brian Christmas <email@hidden> wrote:

> set jsonURL to do shell script "curl    -H  -u
> '2V57JR9HQNAZNZVOW6OZXG:F7l-9f3SR2We7q9L6mzds'   -G
> \"https://api.fastspring.com/subscriptions?limit=10000\
> <https://api.fastspring.com/subscriptions?limit=10000\>”"
>


Best thing to do is debug in terminal first, then once you have the syntax
down, escape it as necessary for AppleScript

This syntax works from the command line, but the file “debugdump.txt” shows
that no real data came back:

curl --user 2V57JR9HQNAZNZVOW6OZXG:F7l-9f3SR2We7q9L6mzds --GET
https://api.fastspring.com/subscriptions?limit=10000 --trace-ascii debugdump.txt

You don’t need the single or double quotes inside the command. The “:”
character separates the username from the password. If you get a message back
that the port number is incorrect, then it’s interpreting the ‘:” as a port
identifier. This may happen if it’s reading it as an URL. The —user option
cannot follow any others, I think, otherwise it will be interpreted as a URL.

Good luck.


Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 |  (212) 352-0211 |  (917) 375-2272 | 2046 Broadway |
Santa Monica, CA | 90404 |  (310) 264-0211 telephone | www.humanworldwide.com
<http://www.humanworldwide.com/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Excel 2016 and "grant access"
  • Next by Date: Re: Tearing my bloody hair out.
  • Previous by thread: Excel 2016 and "grant access"
  • Next by thread: Illustrator 2017 ruler units
  • Index(es):
    • Date
    • Thread