-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
28 lines (21 loc) · 1.14 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const API = require('./api');
const api = new API('https://3scale-uat11-admin.uat.bluescape.com', 'e7e34f125f');
/*api.list('section').then((results) => {
// console.log(JSON.stringify(results));
});*/
// api.createSection({partial_path: "/test", parent_id: "28", title: "Test6", public: 1, system_name: "test_new3"}).then(console.log)
api.updateParentIdSection(231, {parent_id: 230});
// api.deleteSection({id: "203"});
// api.getSectionById(203);
// api.createTemplate({path:"/template", section_name: "Test", section_id: "204", system_name: "main_layout", title: 'Test Template', layout_name: "main_layout", type: "page", filename: "index.html", liquid_enabled: 1})
// api.updateTemplate({id: 449, filename: "index.html"})
// api.getTemplateById(449);
// api.deleteTemplate({id: 449});
// api.createFile({ path: '/test/api.js',downloadable: 0, file_path: 'api.js', downloadable:false });
// api.updateFile({ id: '110', path: '/test/api.js', section_id: '204', file_path: 'api.js', downloadable: 1 });
// api.getFileById('110')
// .then((res) => {
// console.log(res)
// })
// api.delete('file','108');
//api.getTemplateById(315).then(console.log)