Created
June 21, 2016 01:55
-
-
Save jfsso/5cd988dcf815c7833a85b01cd53deac6 to your computer and use it in GitHub Desktop.
Script that uploads Android strings to OneSky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'onesky' | |
# Settings | |
project_id = XXXXX | |
# Create client | |
client = Onesky::Client.new('<api_key>', '<api_secret>') | |
# show project details | |
project = client.project(project_id) | |
resp = JSON.parse(project.show) | |
p resp['data'] | |
# upload file | |
resp = project.upload_file(file: 'app/src/main/res/values/strings.xml', file_format: 'ANDROID_XML', is_keeping_all_strings: 'false') | |
p resp.code # => 202 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment