|
@@ 84-90 (lines=7) @@
|
| 81 |
|
# Second parameter "callback_endpoint" (string) is the url, where the |
| 82 |
|
# callback should be send to. |
| 83 |
|
# Method's return type is HTTParty::Response object. |
| 84 |
|
def schedule_files_service(payload=nil, callback_endpoint=nil) |
| 85 |
|
data = get_post_data(payload) |
| 86 |
|
update_callback data, callback_endpoint |
| 87 |
|
call_endpoint("#{@sandcage_api_endpoint}schedule-tasks", |
| 88 |
|
post=true, |
| 89 |
|
data=data) |
| 90 |
|
end |
| 91 |
|
|
| 92 |
|
private |
| 93 |
|
|
|
@@ 70-76 (lines=7) @@
|
| 67 |
|
# Second parameter "callback_endpoint" (string) is the url, where the |
| 68 |
|
# callback should be send to. |
| 69 |
|
# Method's return type is HTTParty::Response object. |
| 70 |
|
def destroy_files_service(payload=nil, callback_endpoint=nil) |
| 71 |
|
data = get_post_data(payload) |
| 72 |
|
update_callback data, callback_endpoint |
| 73 |
|
call_endpoint("#{@sandcage_api_endpoint}destroy-files", |
| 74 |
|
post=true, |
| 75 |
|
data=data) |
| 76 |
|
end |
| 77 |
|
|
| 78 |
|
# The "schedule-tasks" service |
| 79 |
|
# |