All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.asana.resources.OrganizationExports Maven / Gradle / Ivy

package com.asana.resources;

import com.asana.Client;
import com.asana.models.OrganizationExport;
import com.asana.requests.ItemRequest;
import com.asana.resources.gen.OrganizationExportsBase;

public class OrganizationExports extends OrganizationExportsBase {
    public OrganizationExports(Client client) {
        super(client);
    }

    /**
     * Returns details of a previously-requested Organization export.
     *
     * @param  organizationExport Globally unique identifier for the Organization export.
     * @return Request object
     */
    public ItemRequest findById(String organizationExport) {

        String path = String.format("/organization_exports/%s", organizationExport);
        return new ItemRequest(this, OrganizationExport.class, path, "GET");
    }

    /**
     * This method creates a request to export an Organization. Asana will complete the export at some
     * point after you create the request.
     *
     * @return Request object
     */
    public ItemRequest create() {

        return new ItemRequest(this, OrganizationExport.class, "/organization_exports", "POST");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy