Automate upload and download files from shopify server via FTP - api

I am wondering if there is anyway I can automate upload and download files via FTP from Shopify API

See here: How can I get FTP access to my website?
Since Shopify is a fully hosted service, we don't provide FTP access to your website.
And here: Why doesn't Shopify allow for FTP access?

The correct answer is no. You cannot use FTP with the Shopify API. The Shopify API uses HTTP for transfers.

I have created a tool to make this possible.
You can use FTP to upload and download files from the Shopify API using this FTP Proxy.
https://github.com/sstur/shopify-ftp
This is open-source and free to use. Please submit any issues you find to the GitHub Issue tracker.

Related

REST API and CDN for audio streaming

I'm facing a bandwith issue on a server that hosts a REST API and I wondered if I could use a CDN to fix it.
Most of the bandwith consumption is due to static assets provision, like audio files.
Access to those assets requires an authentication token (JWT like).
When the user requests for an asset, I first need the API to do some checkups, and then streams an audio file.
A CDN appeared to me as an ideal solution, but it raised two questions :
Can I keep my static audios behind a JWT authentication if they are stored on a CDN ?
Is it possible to redirect the original request to a dynamic link provided by the CDN, and specifically ask for streaming and not raw download ?
Thanks for your time and advices
If you want basic API authentication for CDN request then most CDN's support mechanism to do this - for example the Akamai information is here:
https://techdocs.akamai.com/api-definitions/docs/json-web-token-jwt-val
Answering the second question, so long as the CDN and your client support range requests then you should be able to download chunks, if you are using basic HTTP progressive download type streaming.
If you are using HLS or DASH streaming then nearly all CDN's will support this as standard.

Accessing Spinnaker gate api which authenticated with google OAuth2.0

I have deployed the Spinnaker services and set its authentication by using google oauth2.0 services.
Now I wanna access the gate api by writing custom nodejs javascripts.
So the question is I donnot know how to let my request/http scripts access the gate apis without interactive google auth actions, like using something like setting a token in the request's header?.
I have read the docs about IAP part, but I really do not quite understand what I need to setup in Spinnaker and how can I write my request scripts.
Any help would be very appreciated.
Thanks in advance.
since you have already integrated OAuth in Spinnaker, verify if your Gate services open. Spinnaker Gate would open on port 8084 by default. The Spinnaker Gate url would be something like this https://:8084/swagger-ui.html#/ or use "http>://" if you are on http.
It would ask you to login. Try opening it and if it opens your Gate is working fine. you can try out any Spinnaker API too from this swagger page. It should work without any re-login as you are already logged in.
now, to run APIs from code (or any script) you need to have an access token passed in the header. follow any standard oauth 2 document to see the procedure. you can take cues from here. https://www.jhanley.com/google-oauth-2-0-testing-with-curl/

Google drive API access

This is a general question regarding Google drive API system.
I need to create a web app that shows only files hosted in Google drive.
What I've found on the web is mainly regarding authorizing API access to client's account. I need to set only ONE account that is the origin of my files.
How you could suggest to move into this issue?
Thank you

How can Zapier support Dropbox when Dropbox doesn't support Webhooks?

To the best of my knowledge Zapier basically uses Webhooks to link services to eachother. One of the supported services is Dropbox. However Dropbox (still) doesn't support webhooks. (i.e: Dropbox can't signal that a file has, say, updated or changed, to a arbitrary webhook endpoint of choice) .
So how then does Zapier support Dropbox? Does it do longpolling or something?
You'd have to ask them, but I would assume they poll the /delta API.

Alfresco and google drive like authorization

I would like to authorize certain web-apps (In my case: diagram.ly) to access my Alfresco repository like google drive for creating and modifying files. Is there some Alfresco extension out there that already does that? How difficult would it be to write such a "Do you allow XY to access your files" dialog for Alfresco?
The on-premise version of Alfresco generally requires you to authenticate using a username and password, although it is possible as a developer to plug in other authentication mechanisms if you know what you're doing.
If you're after more of an OAuth-type solution that avoids the need to authenticate directly, you could register for an Alfresco Cloud account. The public API for that service, featuring OAuth2-based authorization, was launched this week.
See https://developer.alfresco.com/cloud for more details.