MetadataItem

Represents one Metadata element is the set of meta data attached to a resource.

Meta-data is used to attach extra information to an object. Like custom form information on a person.

MetadataItem Properties

MetadataItem

Field Type Inherited from Description
Application String MetadataItem Gets or sets the application.
Values String MetadataItem Gets or sets the values.

JSON Structure of MetadataItem

{
   "Application"	:	"String",
   "Values"	:	"String"
}

Get Metadata Anonymous Type Async

Example in C#

// Returns: T
var item = await client.GetMetadataAnonymousTypeAsync<T>(BaseInfo baseInfo, String application, T annonymousTypeObject)

Example in CURL



            curl -X GET \
                https://keepapi.feenicshosting.com/api/f/INSRTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
                -H 'Authorization: Bearer TOKEN_GOES_HERE'
             

Get Metadata Async

Example in C#

// Returns: T
var item = await client.GetMetadataAsync<T>(BaseInfo baseInfo, String application)

Example in CURL



           curl -X GET \
               https://keepapi.feenicshosting.com/api/f/INSRTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'
            

Remove Metadata Async

Example in C#

// Returns: nothing
await client.RemoveMetadataAsync(BaseInfo baseInfo, String application)

Example in CURL



           curl -X DELETE \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'
            

Set Metadata Async

Example in C#

// Returns: nothing
await client.SetMetadataAsync(BaseInfo baseInfo, String application, Object values)

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/people/PERSON.KEY/meta/cUrlExample \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"System.Byte[], mscorlib",
                       "$value":"dAAAAApLZXkACUNyZWF0ZWRPbgCA0OXufMf//wpVc2VyAAJOb3RlVGV4dAA9AAAAVGhpcyBDYW4gYmUgYW55IE9iamVjdC4gSSBqdXN0IGFyYml0cmFybGl5IGNob29zZSBhIE5vdGVJbmZvAApIcmVmAAA="
                   }'