Метод | Описание | |
---|---|---|
AnnotateTransactionAsync ( string transactionId, string>.IDictionary |
You may store your own key-value annotations against a transaction in its metadata. Metadata is private to your application. |
|
CreateAttachmentAsync ( string externalId, string fileUrl, string fileType, |
Once you have obtained a URL for an attachment, either by uploading to the upload_url obtained from the upload endpoint above or by hosting a remote image, this URL can then be registered against a transaction. Once an attachment is registered against a transaction this will be displayed on the detail page of a transaction within the Mondo app.
|
|
CreateFeedItemAsync ( string accountId, string type, string>.IDictionary |
Creates a new feed item on the user’s feed.
|
|
CreateWebhookAsync ( string accountId, string url, |
Each time a matching event occurs, we will make a POST call to the URL you provide. If the call fails, we will retry up to a maximum of 5 attempts, with exponential backoff.
|
|
DeleteAttachmentAsync ( string id, |
To remove an attachment, simply deregister this using its id
|
|
DeleteWebhookAsync ( string webhookId, |
When you delete a web hook, we will no longer send notifications to it.
|
|
Dispose ( ) : void |
Disposes the underlying HttpClient.
|
|
GetAccountsAsync ( ) : Task |
Returns a list of accounts owned by the currently authorised user.
|
|
GetBalanceAsync ( string accountId ) : Task |
Returns balance information for a specific account.
|
|
GetTransactionAsync ( string transactionId, string expand = null ) : Task |
Returns an individual transaction, fetched by its id.
|
|
GetTransactionsAsync ( string accountId, string expand = null, |
Returns a list of transactions on the user’s account.
|
|
GetWebhooksAsync ( string accountId ) : Task |
List the web hooks registered on an account.
|
|
MondoClient ( string accessToken, string baseUri = "https://api.getmondo.co.uk" ) : System |
Initializes a new instance of the MondoClient class.
|
|
UploadAttachmentAsync ( string filename, string fileType, string externalId, Stream stream, |
Uploads an attachment from a file stream.
|
Метод | Описание | |
---|---|---|
MondoClient ( |
public AnnotateTransactionAsync ( string transactionId, string>.IDictionary |
||
transactionId | string | |
metadata | string>.IDictionary | Include each key you would like to modify. To delete a key, set its value to an empty string. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public CreateAttachmentAsync ( string externalId, string fileUrl, string fileType, |
||
externalId | string | The id of the transaction to associate the attachment with. |
fileUrl | string | The URL of the uploaded attachment. |
fileType | string | The content type of the attachment. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public CreateFeedItemAsync ( string accountId, string type, string>.IDictionary |
||
accountId | string | The account to create feed item for. |
type | string | Type of feed item. Currently only basic is supported. |
@params | string>.IDictionary | |
url | string | A URL to open when the feed item is tapped. If no URL is provided, the app will display a fallback view based on the title & body. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public CreateWebhookAsync ( string accountId, string url, |
||
accountId | string | The account to receive notifications for. |
url | string | The URL we will send notifications to. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public DeleteAttachmentAsync ( string id, |
||
id | string | The id of the attachment to deregister. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public DeleteWebhookAsync ( string webhookId, |
||
webhookId | string | The id of the webhook to delete. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |
public GetBalanceAsync ( string accountId ) : Task |
||
accountId | string | The id of the account. |
Результат | Task |
public GetTransactionAsync ( string transactionId, string expand = null ) : Task |
||
transactionId | string | The transaction ID. |
expand | string | Can be merchant. |
Результат | Task |
public GetTransactionsAsync ( string accountId, string expand = null, |
||
accountId | string | The account to retrieve transactions from. |
expand | string | Can be merchant. |
paginationOptions | This endpoint can be paginated. | |
Результат | Task |
public GetWebhooksAsync ( string accountId ) : Task |
||
accountId | string | The account to list registered web hooks for. |
Результат | Task |
public MondoClient ( string accessToken, string baseUri = "https://api.getmondo.co.uk" ) : System | ||
accessToken | string | Your access token. |
baseUri | string | URL of the Mondo API to use, defaults to production. |
Результат | System |
public UploadAttachmentAsync ( string filename, string fileType, string externalId, Stream stream, |
||
filename | string | The name of the file to be uploaded |
fileType | string | The content type of the file |
externalId | string | The id of the transaction to associate the attachment with. |
stream | Stream | The file stream. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. | |
Результат | Task |