C# Class PodioAPI.Services.SpaceService

Mostra file Open project: podio/podio-dotnet

Public Methods

Method Description
CreateSpace ( int orgId, string name, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task

Add a new space to an organization.

Podio API Reference: https://developers.podio.com/doc/spaces/create-space-22390

GetAvailableSeats ( int spaceId ) : Task

Returns the available seats. A null value means there is an unlimited number of available seats.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

GetAvailableSpaces ( int orgId ) : Task>

Returns the available spaces for the given organization. This is spaces that are open and available for the user to join.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

GetOrganizationSpaces ( int orgId ) : Task>

Returns the workspaces in the organization that are accesible for the active user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-list-of-organization-workspaces-238875316

GetSpace ( int spaceId ) : Task

Get the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-22389

GetSpaceByOrgAndUrlLabel ( int orgId, string urlLabel ) : Task

Returns the space in the given org with the given URL label

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-org-and-url-label-476929

GetSpaceByUrl ( string orgSlug, string spaceSlug, string spaceUrl ) : Task

Returns the space and organization with the given full URL.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-url-22481

GetTopSpaces ( int limit = 6 ) : Task>

Returns the top spaces for the user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-top-spaces-22477

SpaceService ( Podio currentInstance ) : System.Collections.Generic
UpdateSpace ( int spaceId, string name = null, string urlLabel = null, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task

Updates the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/update-space-22391

Method Details

CreateSpace() public method

Add a new space to an organization.

Podio API Reference: https://developers.podio.com/doc/spaces/create-space-22390

public CreateSpace ( int orgId, string name, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task
orgId int
name string The name of the space
privacy string The privacy level of the space, either "open" or "closed", defaults to "closed"
autoJoin bool True if new employees should be joined automatically, false otherwise, defaults to false
postOnNewApp bool True if new apps should be announced with a status update, false otherwise
postOnNewMember bool True if new members should be announced with a status update, false otherwise
return Task

GetAvailableSeats() public method

Returns the available seats. A null value means there is an unlimited number of available seats.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

public GetAvailableSeats ( int spaceId ) : Task
spaceId int
return Task

GetAvailableSpaces() public method

Returns the available spaces for the given organization. This is spaces that are open and available for the user to join.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

public GetAvailableSpaces ( int orgId ) : Task>
orgId int
return Task>

GetOrganizationSpaces() public method

Returns the workspaces in the organization that are accesible for the active user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-list-of-organization-workspaces-238875316

public GetOrganizationSpaces ( int orgId ) : Task>
orgId int
return Task>

GetSpace() public method

Get the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-22389

public GetSpace ( int spaceId ) : Task
spaceId int
return Task

GetSpaceByOrgAndUrlLabel() public method

Returns the space in the given org with the given URL label

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-org-and-url-label-476929

public GetSpaceByOrgAndUrlLabel ( int orgId, string urlLabel ) : Task
orgId int
urlLabel string
return Task

GetSpaceByUrl() public method

Returns the space and organization with the given full URL.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-url-22481

public GetSpaceByUrl ( string orgSlug, string spaceSlug, string spaceUrl ) : Task
orgSlug string The org of the slug to search for
spaceSlug string The slug of the url to search for
spaceUrl string /// The full URL of the space. The URL does not have to be truncated to the space root, it can be /// the full URL of the resource. ///
return Task

GetTopSpaces() public method

Returns the top spaces for the user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-top-spaces-22477

public GetTopSpaces ( int limit = 6 ) : Task>
limit int
return Task>

SpaceService() public method

public SpaceService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
return System.Collections.Generic

UpdateSpace() public method

Updates the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/update-space-22391

public UpdateSpace ( int spaceId, string name = null, string urlLabel = null, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task
spaceId int
name string The name of the space
urlLabel string The new URL label, if any changes
privacy string The privacy level of the space, either "open" or "closed", defaults to "closed"
autoJoin bool True if new employees should be joined automatically, false otherwise, defaults to false
postOnNewApp bool True if new apps should be announced with a status update, false otherwise
postOnNewMember bool True if new members should be announced with a status update, false otherwise
return Task