Working with Card-Attachments
See original GitHub issueHey,
I need some support with the “Attachment” object.
I want to do the following two things:
1.) Get attachments of a card It seems easy to access the attachments by using „Card.Attachment“, but these objects contain just the information about the file/link. I want the object itself and currently I have no idea if this is even possible. The API document by Trello (https://developers.trello.com/reference#attachments) shows a list of available fields. One of the fields is called „url“ and the example on the Trello-API site provides a link to the attachment. So, what should this link property provide? All my tests just return an empty string. Am I missing/misunderstanding something?
2.) Set an attachment/link This seems more to be an issue. The Trello API just aborts when trying to set up a Link-Attachment to a card…. But maybe I am just to confused with the attachment topic 😉
Sample-Code: `var serializer = new ManateeSerializer(); TrelloConfiguration.Serializer = serializer; TrelloConfiguration.Deserializer = serializer; TrelloConfiguration.JsonFactory = new ManateeFactory(); TrelloConfiguration.RestClientProvider = new WebApiClientProvider(); TrelloAuthorization.Default.AppKey = “”; TrelloAuthorization.Default.UserToken = “”;
Member MainUser = new Member("");
Board myBoard = MainUser.Boards.FirstOrDefault();
Card myCard = myBoard.Cards.FirstOrDefault();
myCard.Attachments.Add("http://www.google.de", "Test");`
Thanks for the support !
Greetings
Julian
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Manatee.Trello v2.0.1 is publishing.
I did. Thank you. You also inspired my wife to make me put a donate button on my projects. 😄