question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working with Card-Attachments

See original GitHub issue

Hey,

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:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
gregsdenniscommented, Feb 1, 2018

Manatee.Trello v2.0.1 is publishing.

0reactions
gregsdenniscommented, Feb 12, 2018

I did. Thank you. You also inspired my wife to make me put a donate button on my projects. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

38 Best Car Accessories For 2023
38 Practical Accessories To Make Owning And Driving A Car An All Around Better Experience · 3. An adorable hanging diffuser to make...
Read more >
Accessories for your car - Wirecutter
We've researched and tested the best car accessories, electronics, and car-care products for upgrading, cleaning, and protecting your vehicle.
Read more >
Occupational Video - Automobile Accessories Installer
Automobile accessories installers install items such as heaters, audio systems, security systems, lights, antennas, upholstery and truck box ...
Read more >
The Coolest Car Gadgets to Soup Up Your Current Ride
Adding the right technology to an older vehicle can make it feel brand new. Upgrade your old vehicle with these high-tech car accessories...
Read more >
27 Must-Have Car Gadgets And Accessories That Road ...
Heads Up Hands Free Driving Display Heads Up Hands Free Driving Display Heads Up Hands Free Driving Display Smart Rear-View Mirror Smart Rear-View...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found