Reputation: 41
I have a code which successfully posts pins on boards which do not contain whitespace characters, such as "mysocialboard" . But when I try to post on boards which contain whitespace characters, such as "my social board", it gives an error of board not found. I have tried using urlencode() and urldecode() functions but they do not help. I am using PHP in codeigniter.
Upvotes: 2
Views: 793
Reputation: 1321
It's not documented anywhere but while posting board name you need to replace white-space by -
in board name. e.g. you need to do user/board-name
instead of user/board name
.
If you are doing it in PHP you should do...
str_replace(' ', '-','my social board')
Upvotes: 0
Reputation: 41
just post the board id replace the / param. it works. though the their api document just not say
Upvotes: 1