> For the complete documentation index, see [llms.txt](https://docs.chatdaddy.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatdaddy.tech/chatdaddy-api/how-to-generate-code-samples-of-different-languages.md).

# How to generate code samples of different languages

**Step 1:**

Search postman download and install postman on your pc

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5709dbb1-6b40-4404-8c38-99cdde89ff80/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5709dbb1-6b40-4404-8c38-99cdde89ff80/Untitled.png)

**Step 2:**

Let's take first line on sendMammy API(<https://api-wa.chatdaddy.tech/docs/>) page for example

In Postman, choose Get as action and input [https://api.sendmammy.com](https://api.sendmammy.com/) as url

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bee2f8f5-037e-4b2c-a127-83d8bcb3795e/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bee2f8f5-037e-4b2c-a127-83d8bcb3795e/Untitled.png)

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0bc07554-4e1e-4ab3-b667-14e91a564f3e/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0bc07554-4e1e-4ab3-b667-14e91a564f3e/Untitled.png)

**Step 3：**

Click 'Authorization' and choose 'Bearer Token' as Type

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c0845fbf-5083-41f0-90a7-61b1fb1bfad9/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c0845fbf-5083-41f0-90a7-61b1fb1bfad9/Untitled.png)

**Step 4:**

Copy code from sendMammy API page

Then in Postman, click 'Body', paste codes, and choose 'raw', then 'JASON' as data format

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/be140336-2509-4eb6-8ab8-bbb717945aaf/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/be140336-2509-4eb6-8ab8-bbb717945aaf/Untitled.png)

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/312d0e6c-494a-4c1a-ab59-dad157ee1615/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/312d0e6c-494a-4c1a-ab59-dad157ee1615/Untitled.png)

**Step 5:**

Click 'Code' on the right hand

Choose whatever language you want from the list

Or just input language you want

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/71cf023b-c834-4345-86e4-ecd8af54a808/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/71cf023b-c834-4345-86e4-ecd8af54a808/Untitled.png)

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/738ac2e8-da92-4d2d-85ba-a5ae21f41c3b/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/738ac2e8-da92-4d2d-85ba-a5ae21f41c3b/Untitled.png)

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e53e8be1-1e58-44a4-8733-d7536b6a2952/Untitled.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e53e8be1-1e58-44a4-8733-d7536b6a2952/Untitled.png)
