|
| Emoji (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) |
|
object | Add (string subreddit, EmojiAddInput emojiAddInput) |
| Add an emoji to the DB by posting a message on emoji_upload_q. A job processor that listens on a queue uses the s3_key provided in the request to locate the image in S3 Temp Bucket and moves it to the PERM bucket. It also adds it to the DB using name as the column and sr_fullname as the key and sends the status on the websocket URL that is provided as part of this response. More...
|
|
object | Delete (string subreddit, string emojiName) |
| Delete a Subreddit emoji. Remove the emoji from Cassandra and purge the assets from S3 and the image resizing provider. More...
|
|
S3UploadLeaseContainer | AcquireLease (string subreddit, ImageUploadInput imageUploadInput) |
| Acquire and return an upload lease to s3 temp bucket. The return value of this function is a json object containing credentials for uploading assets to S3 bucket, S3 url for upload request and the key to use for uploading. Using this lease the client will upload the emoji image to S3 temp bucket (included as part of the S3 URL). This lease is used by S3 to verify that the upload is authorized. More...
|
|
void | UploadLeaseImage (byte[] imageData, S3UploadLeaseContainer s3) |
| Upload an Emoji. More...
|
|
object | CustomSize (string subreddit, int height=0, int width=0) |
| Set custom emoji size. Omitting width or height will disable custom emoji sizing. More...
|
|
SnoomojiContainer | All (string subreddit) |
| Get all emojis for a SR. The response includes reddit emojis as well as emojis for the SR specified in the request. More...
|
|
| BaseModel (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) |
|
string | Sr (string subreddit) |
|
| Request (string appId, string appSecret, string refreshToken, string accessToken, ref RestClient restClient, string deviceId=null, string userAgent=null) |
|
T | SendRequest< T > (string url, dynamic parameters, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
|
async Task< T > | SendRequestAsync< T > (string url, dynamic parameters, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
|
RestRequest | PrepareIDRequest (string path, string id, Method method=Method.POST) |
|
RestRequest | PrepareJSONRequest (string path, Method method=Method.POST) |
|
RestRequest | PrepareRequest (string url, Method method=Method.GET, string contentType="application/x-www-form-urlencoded") |
|
RestRequest | PrepareRequest (string url, Method method, List< Parameter > parameters, List< FileParameter > files, string contentType="application/x-www-form-urlencoded") |
|
RestRequest | PrepareRequest (RestRequest restRequest, string contentType="application/x-www-form-urlencoded") |
|
string | GetVersion () |
|
string | ExecuteRequest (string url, Method method=Method.GET) |
|
async Task< string > | ExecuteRequestAsync (string url, Method method=Method.GET) |
|
string | ExecuteRequest (RestRequest restRequest) |
|
async Task< string > | ExecuteRequestAsync (RestRequest restRequest) |
|
void | UpdateAccessToken (string accessToken) |
|
void | UpdateRequests (List< DateTime > requests) |
|
void | AddParamIfNotNull (string name, dynamic value, ref RestRequest restRequest) |
|