lulucrypto (OP)
|
|
November 16, 2019, 12:56:50 PM Last edit: November 20, 2019, 02:50:14 PM by lulucrypto |
|
Hello, Today I present to you my new project. This project is developed following this topic : - https://bitcointalk.org/index.php?topic=5157603.msg53074017#msg53074017The 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-trustsOnce 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=1305990This request will return : {"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 : [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=1305990And, that's all ! Now, there is more to install the script and test !
|
|
|
|
|
|
|
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
Activity: 2968
Merit: 2147
|
|
November 16, 2019, 03:26:46 PM |
|
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.
|
|
|
|
lulucrypto (OP)
|
|
November 16, 2019, 04:34:42 PM |
|
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 ) 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
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3304
Merit: 16620
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
November 17, 2019, 02:09:58 PM |
|
Just to let you know: I've seen your topic, but haven't had the time to test/install your work yet.
|
|
|
|
lulucrypto (OP)
|
|
November 17, 2019, 02:16:52 PM |
|
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. )
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3304
Merit: 16620
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
November 19, 2019, 06:34:12 PM |
|
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:
|
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3304
Merit: 16620
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
November 19, 2019, 09:21:59 PM |
|
Test: This is easier indeed! It just looks less good than this:
|
|
|
|
lulucrypto (OP)
|
|
November 19, 2019, 09:28:38 PM |
|
Everything is relative ha ha 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
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3304
Merit: 16620
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
November 20, 2019, 06:42:51 PM |
|
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 ) 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).
|
|
|
|
|
|