• 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: Brian Christmas <email@hidden>
  • Date: Fri, 15 Sep 2017 15:51:58 +1000



G’day again scripters

I’ve been trying to study Curl for days, and now how to use Curl in a ‘do shell
script’.

I can’t for the life of me see why this won’t work? BUT, I’m really a novice at
using CURL, completely new to me.

Fast Springs site says I have to use GET. This handler returns “"

Santa

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


> I’m trying to work out the correct syntax to get a subscription list from
> FastSpring, who I’m trying to set up to manage my subscritions for my APP.
>
> I’ve contacted FastSprings support numerous times, but the most they’ll do
> regarding formatting scripts is ‘You’re on the right track’, or,
> unofficially, tell me to try ‘Postman’.
>
> I’ve entered my credential into Postman, and it tells me there’s one text
> subscription, but every iteration of my Shell script returns “”, using the
> same credentials. I know I have to have a ‘User-Agent' header, but support
> won’t advise me if I’ve got the terminology correct. And my Googling shows
> there’s lots of ways to format a ‘User-Agent’ header!!! Postman uses it’s own
> method of addressing the FastSprings site.
>
> I’m at a dead end! I’m told I have to use a ‘GET’, but read that the -H is
> the ‘GET’ equivilent.
>
> Any advice from anybody, please. I’m just guessing, and Googling is
> frustratingly un-informative.
>
> If necessary, is there another company that makes this easier? I’ve battled
> with FastSpring support for over a week now. They absolutely refuse to supply
> or post examples. I need a pop-up store on my website, and a storefront for
> cancelling subscriptions.
>
> Regards
>
> Santa
>
>
>
> set jsonURL to do shell script ("curl ' -H
> User-Agent:2V57JR9HQNAZNZVOW6OZXG/my-password-as-used-in-Postman'
> https://api.fastspring.com/subscriptions/limit=10000
> <https://api.fastspring.com/subscriptions/limit=10000>")
> _._,_._,_
>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Tearing my bloody hair out.
      • From: Ron Hunsinger <email@hidden>
  • Prev by Date: Tearing my bloody hair out.
  • Next by Date: Excel 2016 and "grant access"
  • Previous by thread: Tearing my bloody hair out.
  • Next by thread: Re: Tearing my bloody hair out.
  • Index(es):
    • Date
    • Thread