Method | Description | |
---|---|---|
Get ( long id, string fields = null ) : |
Returns a single Media instance for a given media file id. This is the metadata for the media only.No content data is returned from this API.
|
|
GetData ( long id, MediaType type ) : |
Returns media file's data as stream, in case there is no appropriate MediaType for your media file pass MediaType.UNKNOWN
|
|
GetData ( string key, MediaType type ) : |
Returns media file's data as stream
|
|
Upload ( string pathToFile, string name = null ) : |
Upload media file to account
|
Method | Description | |
---|---|---|
MediaApi ( RestApiClient client ) : System.IO |
public Get ( long id, string fields = null ) : |
||
id | long | id of media file |
fields | string | Limit text fields returned. Example fields=limit,offset,items(id,message) |
return |
public GetData ( long id, MediaType type ) : |
||
id | long | id of media file |
type | MediaType | media type: jpeg, png, gif, mp3, mp4, wav |
return |
public GetData ( string key, MediaType type ) : |
||
key | string | key of media file |
type | MediaType | media type: jpeg, png, gif, mp3, mp4, wav |
return |
public Upload ( string pathToFile, string name = null ) : |
||
pathToFile | string | |
name | string | name for file uploaded |
return |