Asana/ruby-asana

View on GitHub
samples/attachments_sample.yaml

Summary

Maintainability
Test Coverage
attachments: 
    create_attachment_for_object: >-
        require 'asana'


        client = Asana::Client.new do |c|
            c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
        end


        result = client.attachments.create_attachment_for_object(field: "value", field: "value", options: {pretty: true})
    delete_attachment: >-
        require 'asana'


        client = Asana::Client.new do |c|
            c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
        end


        result = client.attachments.delete_attachment(attachment_gid: 'attachment_gid', options: {pretty: true})
    get_attachment: >-
        require 'asana'


        client = Asana::Client.new do |c|
            c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
        end


        result = client.attachments.get_attachment(attachment_gid: 'attachment_gid', param: "value", param: "value", options: {pretty: true})
    get_attachments_for_object: >-
        require 'asana'


        client = Asana::Client.new do |c|
            c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
        end


        result = client.attachments.get_attachments_for_object(parent: ''parent_example'', param: "value", param: "value", options: {pretty: true})