Bitcoin Forum
May 09, 2024, 06:49:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trusts API.  (Read 298 times)
lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 16, 2019, 12:56:50 PM
Last edit: November 20, 2019, 02:50:14 PM by lulucrypto
Merited by LoyceV (6), webtricks (5), Welsh (4), hugeblack (2), o_e_l_e_o (1), TheBeardedBaby (1)
 #1

Hello,

Today I present to you my new project.

This project is developed following this topic :
- https://bitcointalk.org/index.php?topic=5157603.msg53074017#msg53074017

The purpose of the project is quite simple, to provide an API that retrieves trusts information from a profile.

At first, go here and follow the README instructions :
- https://github.com/luluwebmaster/bitcointalk-api-trusts

Once the project is properly installed and configured, the API is very easy to use.

For example, if you want to get the trusts data of a user in JSON :
- Call : https://api.example.com/trusts/public/api.php?clientId=1305990

This request will return :
Code:
{"warning":false,"username":"lulucrypto","trusts":["+0","=1","-0"]}

This is for those who wish to use this data in structured form.

It is also possible to display the image corresponding to a user simply by using this code :
Code:
[img alt=Trust score loading...]https://api.example.com/trusts/public/image.php?clientId=1305990[/img]

With this url, you will directly see the image corresponding to the profile like this :



You can test the API here :
- Json : https://trusts.bitcointalk.luc-mergault.fr/trusts.json?profileId=1305990
- Image : https://trusts.bitcointalk.luc-mergault.fr/trusts.png?profileId=1305990

And, that's all !

Now, there is more to install the script and test ! Smiley

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
1715237352
Hero Member
*
Offline Offline

Posts: 1715237352

View Profile Personal Message (Offline)

Ignore
1715237352
Reply with quote  #2

1715237352
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
hatshepsut93
Legendary
*
Offline Offline

Activity: 2968
Merit: 2147



View Profile
November 16, 2019, 03:26:46 PM
 #2

Are you planning to host your API somewhere? API's usually make most sense when they are provided by a third party, so that they can be called from client's side or by other servers. There are even some good free options like Heroku.

Also, you should write the documentation for your API - all the routes, what params they expect and what type of data they return.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 16, 2019, 04:34:42 PM
 #3

Are you planning to host your API somewhere? API's usually make most sense when they are provided by a third party, so that they can be called from client's side or by other servers. There are even some good free options like Heroku.

Also, you should write the documentation for your API - all the routes, what params they expect and what type of data they return.

Basically this idea of project is not mine, I simply automated the process of @LoyceV with his project.

If he agrees that I offer the API on my domain, I would agree to do so.

The basic idea is that it is him who proposes the API ( To bind it with his project of API ) Wink

Edit :

Also, you should write the documentation for your API - all the routes, what params they expect and what type of data they return.

For that, it will come soon, but I am not very good to do this kind of thing Tongue

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 17, 2019, 02:09:58 PM
 #4

Just to let you know: I've seen your topic, but haven't had the time to test/install your work yet.

lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 17, 2019, 02:16:52 PM
 #5

Just to let you know: I've seen your topic, but haven't had the time to test/install your work yet.

Hello,

Oh, ok, excuse me, I did not know ^^

Keep me informed when you install the script.

It's possible that it needs to configure some stuff on your Apache server for the project to work properly.

( I still have to add details to the project's README file. )

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 19, 2019, 06:34:12 PM
 #6

If he agrees that I offer the API on my domain, I would agree to do so.
Sorry for taking this long to respond, I wanted to install this, but I don't really have the time. And considering I know nothing about the things I'll be doing, while I already have my Trust score images working, I don't want to spend a lot of time on this. It's much easier and no doubt faster if you just install it on your own domain.

I tried to make my images look as natural as possible:
Trust score loading...
Trust score loading...
Trust score loading...
Trust score loading...

lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 19, 2019, 09:19:13 PM
 #7

Sorry for taking this long to respond, I wanted to install this, but I don't really have the time. And considering I know nothing about the things I'll be doing, while I already have my Trust score images working, I don't want to spend a lot of time on this. It's much easier and no doubt faster if you just install it on your own domain.

Yes no worries, I understand.

So I installed the script on this domain :
- https://trusts.bitcointalk.luc-mergault.fr/

It is therefore possible to recover the trusts in JSON format :
- https://trusts.bitcointalk.luc-mergault.fr/trusts.json?profileId=1305990

And directly in an image :
- https://trusts.bitcointalk.luc-mergault.fr/trusts.png?profileId=1305990

I will see to update the topic according to my domain Cheesy

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 19, 2019, 09:21:59 PM
 #8

Test:


This is easier indeed! It just looks less good than this:
Trust score loading...

lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 19, 2019, 09:28:38 PM
 #9

Everything is relative ha ha Tongue

Personally I prefer the model a little arranged ^^

After, if it's only that that bothers you, it's not difficult to provide an alternative to display the images as yours Wink

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
November 20, 2019, 06:42:51 PM
 #10

I'm bringing your post from another topic here:
As I said on the other subject, if it is possible, I would know the part that generates the images ( In private message if necessary ) Smiley
My guess would be he uses (something like) ImageMagick. It's very powerful on the command line, and there's a PHP version (of which I have no idea how it works).

lulucrypto (OP)
Sr. Member
****
Offline Offline

Activity: 709
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
November 20, 2019, 08:55:52 PM
 #11

Hum, maybe Cheesy

After so far, I thought he was using PHP Basic :
- https://www.php.net/manual/en/ref.image.php

That's what I used personally, but I would have liked to see how he uses all that Tongue

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!