This is a migrated thread and some comments may be shown as answers.

How To Use "Everlive" To Update Content in Cloud Code Function

1 Answer 111 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 29 Oct 2014, 12:26 PM
I need to update Content in the back-end inside a Cloud Code Function. Inside the Cloud Code Function, do I need to create the Everlive object as normal or are there other (preferred) ways of doing it?

var el = new Everlive('your-api-key-here');
var data = el.data('Books');
data.create({ 'Author' : 'Harper Lee' },
    function(data){
        alert(JSON.stringify(data));
    },
    function(error){
        alert(JSON.stringify(error));
    });

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 29 Oct 2014, 04:26 PM
Hello Matthew,

You can use the examples from here and tailor them to access your content types from a cloud function. The syntax is the same as in the Cloud Code for a content type.

Let me know if you have questions.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
General Discussion
Asked by
Matthew
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or