Comments (9)
Hi, @huuvu1109
What type of proxy is it? HTTP or SOCKS?
It seems like an empty response from the server, and library expects an array. I'll fix this issue with failing on empty responses, but it is not related with proxy. Maybe you miss some options? For example:
$bot->getHttpClient()->setOptions([
CURLOPT_PROXY => $proxy,
CURLOPT_PROXYTYPE => CURLPROXY_HTTP // or CURLPROXY_SOCKS5
]);
from php-pinterest-bot.
Yes, I add CURLOPT_PROXYTYPE option and it works. But if I add wrong option between CURLPROXY_HTTP and CURLPROXY_SOCKS5, the program stops because
"Catchable fatal error:. Argument 2 passed to seregazhuk\PinterestBot\Api\Response
::getValueByKey() must be of the type array, null given, .....|
I have tried to put it in try{} catch{} but that error still occur and stop the program. Can you change that? I mean if not successful, it throw an exception and I can handle base on the exception (e.g ignore in this case)
from php-pinterest-bot.
Fixed. Now it will return an empty response if request failed.
from php-pinterest-bot.
Hi @seregazhuk ,
It works now. Thanks!
from php-pinterest-bot.
Hi @seregazhuk ,
When we open a Pin, Pinterest, beside Like, Pinterest also have one more option is Tried it like the following Figure, is there any way to do it with the bot in the current version?
from php-pinterest-bot.
Hi, @huuvu1109 it is not yet available. I think next week will be a new release with this feature.
from php-pinterest-bot.
Hi @seregazhuk ,
Thanks for your quick response. Can I ask one more question. You see, the same pin can be accessed by 2 URL:
+https://www.pinterest.com/pin/AWh38bJ4p7cCTufggo798KTQlt_fxTQ52PkiqfmrDhASkX8_Dabj3NihElPIaOIFAU4yHQSPy9NeOdqTqeGayNo/
+https://www.pinterest.com/pin/311029918005931968/
When we get pinInfo, we get the string AWh38bJ4p7cCTufggo798KTQlt_fxTQ52PkiqfmrDhASkX8_Dabj3NihElPIaOIFAU4yHQSPy9NeOdqTqeGayNo . Do you know how to translate this tring to the real pin id. Thanks!
from php-pinterest-bot.
Have no idea. But you can use this hash as a pin id, why do you need exactly a real pin id?
from php-pinterest-bot.
@huuvu1109 I've just published a new release (5.4.4) and it has try it functionality. Check the docs for examples.
from php-pinterest-bot.
Related Issues (20)
- Create APP and Get Token
- Problem to create a new pin HOT 6
- [Invalid email.] When Registering Pinterest
- Здравствуйте.
- Registration error: Invalid parameters. HOT 2
- account banned HOT 1
- how can be scheduled images to go live at a later date on pinterest using api in php? HOT 1
- Keywords recommend not working anymore HOT 1
- Can we create a pin with access_token?
- Domain Spam or Blocked Check?
- Error when create acc
- is it possible to add multiple keywords ? HOT 4
- Pinterest rate limits HOT 2
- Get Boards Return Empty
- Observing the PhP Fatal Error again with the v5.9.1 HOT 9
- Can you please help me to use the edit command ?
- Your requirements could not be resolved to an installable set of packages.
- Autoloader issue
- Login method not working HOT 9
- Is this project dead? Cannot connect Pinterest Account.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-pinterest-bot.