abrudtkuhl / WordPressSharp

A C# client to to interact with the WordPress XML-RPC API
abrudtkuhl.github.io/WordPressSharp/
GNU General Public License v3.0
103 stars 49 forks source link

Get File Link #61

Closed guillogc closed 7 years ago

guillogc commented 7 years ago

Is there a way, having the post Id number of the uploaded image, to get the direct link to that image instead of the link for the post?

Thank you!!

guillogc commented 7 years ago

I found the solution myself.

It was using GetMediaItem instead of GetPost.

:)

abrudtkuhl commented 7 years ago

Was it an issue with code? Can you submit the fix via Pull Request?

On Sun, Nov 20, 2016 at 9:12 PM, guillogc notifications@github.com wrote:

Closed #61 https://github.com/abrudtkuhl/WordPressSharp/issues/61.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abrudtkuhl/WordPressSharp/issues/61#event-865853454, or mute the thread https://github.com/notifications/unsubscribe-auth/AATsrK6B2KxU7EqMMU-RtH6jTR95N2oBks5rAQwzgaJpZM4K3xYw .

guillogc commented 7 years ago

No no, no issue with the code. It was my issue. Thank you!!

abrudtkuhl commented 7 years ago

Excellent!

On Sun, Nov 20, 2016 at 9:17 PM, guillogc notifications@github.com wrote:

No no, no issue with the code. It was my issue. Thank you!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abrudtkuhl/WordPressSharp/issues/61#issuecomment-261832972, or mute the thread https://github.com/notifications/unsubscribe-auth/AATsrAVjly0rlnMfh3dITpVFgjTXD3RYks5rAQ08gaJpZM4K3xYw .