Author

Topic: need help with api (Read 1645 times)

sr. member
Activity: 336
Merit: 250
December 12, 2015, 02:15:59 AM
#15
Have you enabled API Access in your settings on Blockchain? The API seems to be working for me.

Have you tried braces around $guid  {$guid}?

Are you getting an error message? Have you tried calling the URL with your credentials in a browser?
bing! when i changed my hosting account and accessed ip then it did worked Cheesy i am now sooo excited . thank you everyone for all your help i am very glad that i asked here it is the right place for my answers Cheesy again a very big thank you too all the dev and coders
full member
Activity: 1498
Merit: 146
December 12, 2015, 01:02:08 AM
#14
Have you enabled API Access in your settings on Blockchain? The API seems to be working for me.

Have you tried braces around $guid  {$guid}?

Are you getting an error message? Have you tried calling the URL with your credentials in a browser?
sr. member
Activity: 336
Merit: 250
December 12, 2015, 12:51:34 AM
#13
sorry while posying it here i mistakenly removed it...but its still not working

What error are you receiving?
Or is it just a blank white  page?
Make sure you have enabled api access AND white listed your Web servers IP
well maybe i should try to again white listing my ip address
What error do you get while fetching the API? Have you made sure that your GUID is in the correct format, and that your password is url encoded (if it contains any special characters in the URL)?
no my guid is copyed from the blockchain wallet login page so i hardly expect any mistake in that and i also dnt think my password is worng
legendary
Activity: 2352
Merit: 1268
In Memory of Zepher
December 11, 2015, 03:53:06 PM
#12
What error do you get while fetching the API? Have you made sure that your GUID is in the correct format, and that your password is url encoded (if it contains any special characters in the URL)?
legendary
Activity: 1442
Merit: 1186
December 11, 2015, 03:51:18 PM
#11
sorry while posying it here i mistakenly removed it...but its still not working

What error are you receiving?
Or is it just a blank white  page?
Make sure you have enabled api access AND white listed your Web servers IP
tyz
legendary
Activity: 3360
Merit: 1533
December 11, 2015, 03:49:17 PM
#10
i guess he meant which api you want to retrieve. the official bitcoin api or do you use the api of some third party service like coinbase or blockchain.com?

What is the api?

sr. member
Activity: 336
Merit: 250
December 11, 2015, 03:32:25 PM
#9
sorry while posying it here i mistakenly removed it...but its still not working
legendary
Activity: 1442
Merit: 1186
December 11, 2015, 03:20:42 PM
#8
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Here ya go mister.

https://www.youtube.com/watch?v=D2__AFoOdec
thanks for the link sir but i have already seen this and some other video tutorial from youtube i did a lot of work on them and got able to get an {"error":"Unknown method"} . i will be glad if someone can help me with the codes.i mean give me the codes

Sounds like you didn't retrieve the JSON response as JSON.
Can you share some of the code you've tried? Otherwise it's difficult for us to help you.
Code:
 
$guid 
"";
$main_password "";


$bal json_decode(file_get_contents("https://blockchain.info/merchant/$guid/balance?
password=
$main_password"), true);



$parseaddy $bal[balance];




echo 
"Your Address Has a balance of";

echo 
$parseaddy;

echo 
"satoshi
"
;

echo 
"
Kindly Use it to Fund your Account"
;


?>






well i dont even know that i am doing it correctly or not but here is the code check it and tell me where i am doing the mistake
You're missing your quotes

$parseaddy = $bal["balance"];
sr. member
Activity: 336
Merit: 250
December 11, 2015, 01:09:34 PM
#7
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Here ya go mister.

https://www.youtube.com/watch?v=D2__AFoOdec
thanks for the link sir but i have already seen this and some other video tutorial from youtube i did a lot of work on them and got able to get an {"error":"Unknown method"} . i will be glad if someone can help me with the codes.i mean give me the codes

Sounds like you didn't retrieve the JSON response as JSON.
Can you share some of the code you've tried? Otherwise it's difficult for us to help you.
Code:
 
$guid 
"";
$main_password "";


$bal json_decode(file_get_contents("https://blockchain.info/merchant/$guid/balance?
password=
$main_password"), true);



$parseaddy $bal[balance];




echo 
"Your Address Has a balance of";

echo 
$parseaddy;

echo 
"satoshi
"
;

echo 
"
Kindly Use it to Fund your Account"
;


?>






well i dont even know that i am doing it correctly or not but here is the code check it and tell me where i am doing the mistake
legendary
Activity: 1442
Merit: 1186
December 11, 2015, 08:41:03 AM
#6
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Here ya go mister.

https://www.youtube.com/watch?v=D2__AFoOdec
thanks for the link sir but i have already seen this and some other video tutorial from youtube i did a lot of work on them and got able to get an {"error":"Unknown method"} . i will be glad if someone can help me with the codes.i mean give me the codes

Sounds like you didn't retrieve the JSON response as JSON.
Can you share some of the code you've tried? Otherwise it's difficult for us to help you.
sr. member
Activity: 336
Merit: 250
December 11, 2015, 03:41:10 AM
#5
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Here ya go mister.

https://www.youtube.com/watch?v=D2__AFoOdec
thanks for the link sir but i have already seen this and some other video tutorial from youtube i did a lot of work on them and got able to get an {"error":"Unknown method"} . i will be glad if someone can help me with the codes.i mean give me the codes
legendary
Activity: 1610
Merit: 1000
Well hello there!
December 10, 2015, 08:43:37 PM
#4
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Here ya go mister.

https://www.youtube.com/watch?v=D2__AFoOdec
sr. member
Activity: 336
Merit: 250
December 10, 2015, 05:27:19 PM
#3
What is the api?

api is a peace of code by which we can get some needful data from others wapsite like youtube videos or bitcoin address balance these type of things are shared using api codes which are generally used by programmers and developers in our wapsites or apps
newbie
Activity: 15
Merit: 0
December 10, 2015, 05:23:40 PM
#2
What is the api?
sr. member
Activity: 336
Merit: 250
December 10, 2015, 03:06:58 PM
#1
hey guys i am here stuck with api problem i want to fetch bitcoin wallet balance using api but i am new to some languages like json and nodejs m totally noob in them so it will be very helpful if anyone can give me a full example with codes blockchain api will be good and also i am looking for youtube api video fetching too(optionally) . any help will be apriciated
Jump to: