Post data to api return json result

<?php 
	$url = http://127.0.0.1/api.php;

	$token = "398cfd96a89a5f45fac326b6778f5da4";
	$agent = $_SERVER['HTTP_USER_AGENT'];

	// POST ITEM
	$query = array(
		"access_token" => $token, 
		"memberID" => "00000001",
	);

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch,CURLOPT_USERAGENT, $agent);
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, count($query));
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($query));
	$result = curl_exec($ch);
	curl_close($ch);
	$result = json_decode($result, true);

	echo "<pre>";
	print_r($result);
	echo "</pre>";
?>

84 thoughts on “Post data to api return json result

  1. Pingback: Buy branded viagra

  2. Pingback: cialis 20mg

  3. Pingback: cialis generic name

  4. Pingback: cialis 20 mg

  5. Pingback: Levitra or viagra

  6. Pingback: Generic viagra usa

  7. Pingback: buy cialis online

  8. Pingback: discount cialis

  9. Pingback: cialis over the counter 2020

  10. Pingback: cialis coupon walmart

  11. Pingback: online cialis

  12. Pingback: online pharmacy viagra

  13. Pingback: viagra 50mg

  14. Pingback: viagra 50mg

  15. Pingback: new ed pills

  16. Pingback: male erection pills

  17. Pingback: non prescription ed pills

  18. Pingback: canada online pharmacy

  19. Pingback: levitra online

  20. Pingback: vardenafil 20 mg

  21. Pingback: wind creek casino online play

  22. Pingback: sugarhouse casino online nj

  23. Pingback: viagra online prescription

  24. Pingback: best online casino real money

  25. Pingback: online slots

  26. Pingback: payday loans

  27. Pingback: personal loan

  28. Pingback: quick cash loans

  29. Pingback: viagra cost

  30. Pingback: cialis 5 mg

  31. Pingback: cialis buy

  32. Pingback: cialis 5 mg

  33. Pingback: cialis internet

  34. Pingback: cialis internet

  35. Pingback: online casino real money

  36. Pingback: online casino games

  37. Pingback: free casino games

  38. Pingback: golden nugget online casino

  39. Pingback: buying viagra online

  40. Pingback: viagra online prescription

  41. Pingback: viagra prescription

  42. Pingback: buy tadalafil

  43. Pingback: viagra online generic

  44. Pingback: viagra for sale online

  45. Pingback: buy cheap viagra

  46. Pingback: how to buy viagra online safely in india

  47. Pingback: how to get viagra in india

  48. Pingback: Buy pfizer viagra in canada

  49. Pingback: viagra in canada

  50. Pingback: buy viagra online price

  51. Pingback: buy viagra online with prescription

  52. Pingback: Viagra approved

  53. Pingback: Discount viagra

  54. Pingback: cialis online

  55. Pingback: who can write my paper for me

  56. Pingback: online dissertation writing

  57. Pingback: professional essay help

  58. Pingback: cheap custom essays online

  59. Pingback: legit essay writing services

  60. Pingback: thesis writing practice

  61. Pingback: research paper help sites

  62. Pingback: master thesis writing service

  63. Pingback: Sample viagra

  64. Pingback: where can i buy viagra

  65. Pingback: Cymbalta

  66. Pingback: Levaquin

  67. Pingback: us pharmacy no prior prescription

  68. Pingback: cheap cialis generic online

  69. Pingback: cheap cialis free shipping

  70. Pingback: cialis canada pharmacy

  71. Pingback: cialis 20mg pills

  72. Pingback: cialis generic no prescription

  73. Pingback: buy custom essays online

  74. Pingback: how to write thesis

  75. Pingback: how to write a phd thesis

  76. Pingback: writing a doctoral dissertation

  77. Pingback: papers writing service

  78. Pingback: medicine metformin 500

  79. Pingback: propecia 5 mg

  80. Pingback: ed pills for sale

  81. Pingback: canadian pharmacy generic levitra

  82. Pingback: vipps approved canadian online pharmacy

  83. Pingback: cialis walmart price

  84. Pingback: buy cialis tadalafil0 with pay pal

發表迴響