echo "`xclip -selection clipboard -o`" | curl --request POST --data @- localhost:8080/realclipper/api/v1.0/clipboard 

#!/bin/bash

#POST API request with the content of the clipboard"
echo "`xclip -selection clipboard -o`" | curl --request POST --data @- localhost:8080/realclipper/api/v1.0/clipboard 

Paste script using curl and xclip
Paste script using curl and xclip
