Page 1 of 1

Sirv integration

Posted: Thu Jan 29, 2015 12:37 am
by Jean Paul Meynard

Hi! I have added Sirv plugin but I am puzzled by the business logic of the plugin. It looks like it works only on images uploaded into Sirv cloud storage and not on the ones already stored at Apperyio's. Is this the correct assumption?


Sirv integration

Posted: Thu Jan 29, 2015 3:58 am
by Yurii Orishchuk

Hi Jean,

Here is code of "setImage" function.

precode

function setImage()
{
var resultURL = Apperyio.storage.photoLink.get() + '&scale.width=' + Apperyio('width_slider').val() + '%&quality=' + Apperyio('quality_slider').val();
Apperyio('image').attr('src', resultURL);
Apperyio('url').val(resultURL);
}

/code/pre

As you can see you can use here any sirv url.

Also - you can just use sirv service like you need.

See more info here: https://sirv.com/resources/api/

Regards.


Sirv integration

Posted: Thu Jun 02, 2016 7:32 pm
by Deon

Hi Yuri

I have the same question. My images are stored in the Appery Files DB. Is there anyway I can reference them on must my files sit on the SIRV platform?

Thanks


Sirv integration

Posted: Fri Jun 03, 2016 12:18 am
by Jake Brumby

Hi Deon,

Your images must be stored on the Sirv platform.

You can upload images to your Sirv account either with S3 file transfer, FTP or browser upload. Options are explained here: https://sirv.com/resources/getting-st...

To test it, register an account here: https://my.sirv.com/#/signup

Jake
Sirv


Sirv integration

Posted: Fri Jun 03, 2016 3:34 pm
by Deon

Thanks Jake

I need to do this programatically from my app. I do not use Amazon S3 as this is an unwanted cost. Cant use JScript to FTP either.

Neither of these two option proposed is helpfull for pushing an image from a mobile device.

Unless I am missing something?
Thank you


Sirv integration

Posted: Fri Jun 03, 2016 7:35 pm
by Howard Chang

I wanted to ask the same question. It's not clear on the instruction on how to upload image directly from the App like what Deon mentioned so I am hesitate to use the service.


Sirv integration

Posted: Sat Jun 04, 2016 6:54 am
by Jake Brumby

Deon - you don't need an Amazon S3 account. Sirv allows you to transfer files using the AWS S3 REST API, which is fast, secure and reliable (unlike FTP). Confusingly, it shares the name with the AWS S3 storage service, which is Amazon's paid storage service. The Sirv platform doesn't use Amazon S3 storage, it merely uses S3 compatible storage and transfer, meaning you may use the AWS S3 REST API.

Your S3 credentials are shown on this page in your Sirv account: https://my.sirv.com/#/account

Howard - you should use the AWS SDK for JavaScript (it's a REST API) to build REST requests like in this Appery.io screenshot:

Image

An example of using the AWS SDK for JavaScript is here:

https://sirv.com/resources/api/#AWS_S...

Yurii - it would be great if Appery.io could provide a service to communicate with Sirv using the AWS SDK for JavaScript. Then all Appery.io users can make use of Sirv without each of them having to build REST requests. Could we explore this together? We can work with the Appery.io developers to build the integration - it will be quite easy and fast.

Thanks,

Jake
Sirv


Sirv integration

Posted: Sun Jun 05, 2016 5:23 am
by Illya Stepanov

Hi Jake - Thank you for writing in and your offer. Please, contact Max directly at: a href="mailto:max@appery.io" rel="nofollow"max@appery.io/a