module Monzo::Client::FeedItems

Overview

Exposes methods for dealing with FeedItems as defined by the Feed-items API documentation.

Direct including types

Defined in:

monzo/client/feed_items.cr

Constant Summary

TYPE = "basic"

Instance Method Summary

Instance Method Detail

def feed_item(account : Monzo::Account, url : String, params) #

Creates a FeedItem that will link to the specified url when clicked in the phone app, for a specified account.

account = client.accounts.first
client.feed_item(account, "https://www.github.com", {"GitHub Payment", "https://github.com/logo.png"}) # => true

[View source]
def feed_item(account_id : String, url : String, params) #

Creates a FeedItem that will link to the specified url when clicked in the phone app, for a specified account_id.


[View source]
def feed_item(account : Monzo::Account, params) #

Creates a FeedItem to be displayed in the phone app for the specified account.

account = client.accounts.first
client.feed_item(account, {"GitHub Payment", "https://github.com/logo.png"}) # =>  true

[View source]
def feed_item(account_id : String, params) #

Creates a FeedItem to be displayed in the phone app for the specified account_id.


[View source]