Reply
cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Re: Upwrok API: Trying to get all Agency Proposals

Highlighted
Active Member
Slav S Member Since: Jun 22, 2015
1 of 4

I'm not sure how to post in API section, thus please move it to the correct section.

 

My goal is to list all Agency proposals in PHP. For this reason, I'm using:

 

$applications = new \Upwork\API\Routers\Hr\Freelancers\Applications(self::getClient());
$data = $applications->getList();

 However the response I get is:

 

object(stdClass)[19]
  public 'server_time' => int 1527085451
  public 'error' => 
    object(stdClass)[20]
      public 'status' => int 400
      public 'code' => int 0
      public 'message' => string 'Bad Request: query param limit must be greater than or equal to 1' (length=65)

I'm not sure what limit should I send? There is no info in https://developers.upwork.com/?lang=php#contracts-and-offers_get-job-application-as-client 

 

The second issue I notice is when I use:

$applications = new \Upwork\API\Routers\Hr\Freelancers\Applications(self::getClient());
$data = $applications->getSpecific(proposal_ref);

It works fine for freelancers, but if I want to get Agency Proposals, it returns me that I do not have permissions. Is there a way to get Agency Proposals? The user that I use has agency and he is the owner of the Agency, so permissions should be sufficient.

 

Community Guru
Nina K Member Since: Nov 29, 2017
2 of 4

Hi Slav,

We'll have a member of the team reach out to you directly via an email support ticket to further assist you with your API issue and you'll be hearing from them shortly. Thanks!

~Nina
Highlighted
Active Member
Jakub K Member Since: Mar 7, 2013
3 of 4

The same problem here. I'm trying to get data from the endpoint GET /api/hr/v4/contractors/applications and the following error is returned:

Bad Request: query param limit must be greater than or equal to 1

 

Is there any way to fix it?

Highlighted
Moderator
Goran V Moderator Member Since: Mar 24, 2017
4 of 4

Hi Jakub,

 

One of our team members will reach out to you via ticket as soon as possible and assist you further with your API. Thank you.


Untitled
TOP SOLUTION AUTHORS
TOP KUDOED MEMBERS