I guess I´m missing something big here, but I don´t understand what an app is, is it just a .liquid page or set off .liquid pages?
Am I suppose to rebuild the shop I created, to an app?
And where do I create them, in the template editor or on my computer and then upload them to shopify?
Is there a very basic sample somewhere, a "Hello World"?
In the app settings what is Application Callback URL (required), Preferences URL, Support URL - are they links to shopify or at my own server?
As you can see, I really don´t get it :-)
People install apps by going through the app install process, detailed in the API docs; essentially it's an OAuth authentication; when everything's said and done, you'll have an access token, which you can then use to modify these people's stores, via HTTP requests.
Once you understand this, the application callback url, preferences and support urls make more sense; they're basically just URLs pointing to the server where your app is hosted.
So basically, to start, I'd say create an app in your partner dashboard, and note the information. Then, pick a language, webserver and webserver package to use. I use Perl and Nginx + Catalyst for this; a lot of people use Ruby and Nginx + Rails. Some people use Python and Apache + Django. I'm sure someone, somewhere has probably used C and FastCGI (you could probably serve up a lot of requests this way, mind you). Set up your webserver somewhere, either on a Heroku server, an amazon aws server, or even one of your own machines you have sitting in your living room. You can even, for the first little bit, have a local server, hosted on the desktop you're currently working on (you can even set the callback url to localhost).
Once you've done this, and you've got a skeleton app running (hello world on your webserver), you can start to interact with Shopify. Try getting a basic process for installation up and running, as detailed here to get your API key. From there, you should be able to modify your store as you see fit, using your chosen language's shopify bindings.
Hi Adam and thanks a lot.
Ok I thought that it was .liquid files that was upload to shopify, packed as zip files and executed when somebody installed the app :-)
I guess it is like the facebook api!? They use oauth authentication.
Well I guess I just have to test and see how it goes, thanks again Adam.
If somebody have some more input I appreciate it.
|4 hours ago|
|5 hours ago|
|5 hours ago|