Open JonathanAquino opened 8 years ago
same problem here. Second call fails ((delete -> post) ).
UPDATE: The only way to overcome it is to use new object (new PublisherAPI) OR to populate "client" property of PublisherAPI object with new \Curl\Curl object
@JonathanAquino
Should fix the problem: https://github.com/chapter-three/AppleNewsAPI/pull/19
// Expected: I should be able to call get() twice, or get() then Post(), on a $PublisherAPI object. // Actual: I get an error if I call get() twice on a $PublisherAPI object. If I create a second $PublisherAPI object for the second get() call, then it works.
Code:
Output: