Member-only story

Fetching Most Recent Minds.com Posts

Michael Haephrati
4 min readFeb 26, 2021

--

Introduction

I needed to fetch the most recent posts from a given Minds.com user ID. To do so, I wanted to use the Minds.com API.

Building Blocks

One of the key building blocks to such project, would be libCurl. I used it as a static library. The .lib file is included in the article's source code, however you can read about using libCurl as a static library here.

Note: WriteLogFile() is one of my old logging functions described in this article.

Getting the User Unique Number

Usually, we will need to supply our function a user ID, such as “minds”. You can also check my own profile “haephrati” ( https://www.minds.com/haephrati).

How Minds.com Requests API Works

Minds.com provides an API call which looks like that:

?sync=1&limit=2&as_activities=0&export_user_counts=0&from_timestamp=

If we break this into its ingredients, we would get the following attributes, and here they are, along with a suggested value:

Initiating libCurl

First, we initiate the Curl object:

curl_global_init(CURL_GLOBAL_ALL); curl =…

--

--

Michael Haephrati
Michael Haephrati

Written by Michael Haephrati

Michael Haephrati, Co-Founder of Secured Globe, Inc. is an inventor, musician, entrepreneur, and the author of the book Learning C++

No responses yet