TechStacks!

<back to all web services

GetOrganizationMembers

Organization
The following routes are available for this service:
GET/orgs/{Id}/members
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TechStacks.ServiceModel
Imports TechStacks.ServiceModel.Types

Namespace Global

    Namespace TechStacks.ServiceModel

        Public Partial Class GetOrganizationMembers
            Implements IGet
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class GetOrganizationMembersResponse
            Public Sub New()
                Results = New List(Of OrganizationMember)
            End Sub

            Public Overridable Property OrganizationId As Integer
            Public Overridable Property Results As List(Of OrganizationMember)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace

    Namespace TechStacks.ServiceModel.Types

        Public Partial Class OrganizationMember
            Public Overridable Property Id As Integer
            Public Overridable Property OrganizationId As Integer
            Public Overridable Property UserId As Integer
            Public Overridable Property UserName As String
            Public Overridable Property IsOwner As Boolean
            Public Overridable Property IsModerator As Boolean
            Public Overridable Property DenyAll As Boolean
            Public Overridable Property DenyPosts As Boolean
            Public Overridable Property DenyComments As Boolean
            Public Overridable Property Notes As String
        End Class
    End Namespace
End Namespace

VB.NET GetOrganizationMembers DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /orgs/{Id}/members HTTP/1.1 
Host: techstacks.io 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"organizationId":0,"results":[{"id":0,"organizationId":0,"userId":0,"userName":"String","isOwner":false,"isModerator":false,"denyAll":false,"denyPosts":false,"denyComments":false,"notes":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}