Author

Topic: Trusts API. (Read 326 times)

sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 20, 2019, 03: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
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 20, 2019, 01: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).
sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 19, 2019, 04: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
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 19, 2019, 04:21:59 PM
#8
Test:


This is easier indeed! It just looks less good than this:
Trust score loading...
sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 19, 2019, 04: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
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 19, 2019, 01: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...
sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 17, 2019, 09:16:52 AM
#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. )
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 17, 2019, 09:09:58 AM
#4
Just to let you know: I've seen your topic, but haven't had the time to test/install your work yet.
sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 16, 2019, 11:34:42 AM
#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
legendary
Activity: 3024
Merit: 2148
November 16, 2019, 10:26:46 AM
#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.
sr. member
Activity: 709
Merit: 336
You need someone to develop your Web project ?
November 16, 2019, 07:56:50 AM
#1
Hello,

Today I present to you my new project.

This project is developed following this topic :
- https://bitcointalksearch.org/topic/m.53074017

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
Jump to: