在 developer.gooddata.com 上有一个用 Ruby 编写的很好的示例,说明如何将数据上传到 GoodData 平台上的项目特定存储。
我想知道是否有人有使用以下 API 执行特定流程 GoodData 的代码示例:
/gdc/projects/{project-id}/dataload/processes/{process-id}/executions{?offset,limit}
谢谢,米歇尔
Easiest way to do it programmatically is using ruby sdk (github.com/gooddata/gooddata-ruby).
There are methods for uploading to user and project based staging through
project.upload_file('some_file')
client.upload_file('/file')
There is also a way to deploy processes and even execute them
client = GoodData.connect('username', 'pass')
project = client.projects('project_id')
process = project.deploy_process('path_to_file_or_dir')
process.execute('main.grf', :params => {'foo' => 'bar'})
Executing specific process works very similarly
client = GoodData.connect('username', 'pass')
project = client.projects('project_id')
process = project.processes('process_id')
process.execute('main.grf', :params => {'foo' => 'bar'})
一种选择是转到具有不错功能的 GoodData API 文档 - 代码示例:
转到以下链接:
你可以看到“显示代码示例”
并选择Ruby。这些代码示例是通用的,使用相同的模式和 REST 客户端,但它可以帮助您。如果您使用正确的服务器,请仔细检查 URL。该网址很可能是https://secure.gooddata.com/gdc ...
捷通