# Accept data from web service to particle photon

**URL:** <https://community.particle.io/t/accept-data-from-web-service-to-particle-photon/33088>\
**Category:** Firmware\
**Created:** [May 23, 2017, 8:51am UTC](https://community.particle.io/t/accept-data-from-web-service-to-particle-photon/33088 "2017-05-23T08:51:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelica](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/angelica/32/14225_2.png) [@angelica](https://community.particle.io/u/angelica)\
**Post date:** [May 23, 2017, 8:51am UTC](https://community.particle.io/t/accept-data-from-web-service-to-particle-photon/33088/1 "2017-05-23T08:51:03Z")

</div>

Hi guys, do have a code sample that accept data from web service to photon?  
thank you.

RDIF-\>Log System-\>Web service-\>Photon-\>Led matrix display names that come in.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 23, 2017, 9:26am UTC](https://community.particle.io/t/accept-data-from-web-service-to-particle-photon/33088/2 "2017-05-23T09:26:38Z")

</div>

Since you weren't that interested in elaborating any more on that other thread I'm just giving you the same answer

> [@Photon code. help me frowning](https://community.particle.io/t/photon-code-help-me/32965/2):
>
> Again a rather thin description of your needs. In general it’s doable, but without specifics and some intial effort from your side, we (or at least myself) feel a bit reluctant to jump in.

---

<div class="post-metadata">

**Author:** ![cermak](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/cermak/32/14174_2.png) [@cermak](https://community.particle.io/u/cermak)\
**Post date:** [May 23, 2017, 2:57pm UTC](https://community.particle.io/t/accept-data-from-web-service-to-particle-photon/33088/3 "2017-05-23T14:57:21Z")

</div>

Just guessing… more details would be helpful. 👈

There is at least two avenues to having a Photon listen for outside data. If you would like a typical http connection, use [https://docs.particle.io/reference/firmware/photon/#tcpserver](https://docs.particle.io/reference/firmware/photon/#tcpserver) and use port 80 instead of 23. Or, you could use a subscription service and then send web calls to Particle which should then get to the electron.  
[https://docs.particle.io/reference/firmware/photon/#particle-subscribe-](https://docs.particle.io/reference/firmware/photon/#particle-subscribe-)

The latter is probably preferrered if the Photon is not directly accessible on the internet, say on a local home network.
