Problem with method call Profile/GetAccountDetails

48 views
Skip to first unread message

community modder

unread,
Jun 8, 2011, 12:42:28 PM6/8/11
to Freelancer API Developers
I have a problem with the Profile/GetAccountDetails method. When a
have no profile picture it returns an empty array. When I have a
profile picture it returns a string with the url. Can someone on the
freelancer team fix this please? Thanks. I am using the sandbox.

Lisheng Yu

unread,
Jun 8, 2011, 7:29:27 PM6/8/11
to freelancer-a...@googlegroups.com
Hi there,

This function is supposed to return a URL for your profile picture if you have one, if not it will return empty. That's supposed to be right.

Lisheng
--
Regards,

Lisheng Yu
Freelancer.com Engineering



community modder

unread,
Jun 11, 2011, 4:05:27 AM6/11/11
to Freelancer API Developers
It does not return an empty string...it returns an empty array [ ]

On Jun 8, 7:29 pm, Lisheng Yu <lish...@freelancer.com> wrote:
> Hi there,
>
> This function is supposed to return a URL for your profile picture if you
> have one, if not it will return empty. That's supposed to be right.
>
> Lisheng
>

community modder

unread,
Jun 11, 2011, 4:33:29 AM6/11/11
to Freelancer API Developers
Here is a sample json response:
{"json-result":
{"username":"CommunityModder","userid":"11111111","fullname":"Community
modder","company_name":"","type_of_work":"Both","currency":"1","picture_url":
[],"addressline1":"123
didiif","addressline2":"","city":"Chicago","state":"Il","country":"United
States","postalcode":"95889","phone":"4889394944","fax":"","notificationformat":"text
\/html","emailnotificationstatus":
0,"receivenewsstatus":"0","bidwonnotificationstatus":"1","bidplacednotificationstatus":"1","newprivatemessagestatus":"1","profiletext":"This
is my profile","vision":"My vision","keywords":"mobile, solutions,
troubleshooting","hourlyrate":"10","skills":"","openBuyerProjectList":
[{"id":654,"name":"Test Project","url":"http:\/\/
www.sandbox.freelancer.com\/projects\/654.html"}],"qualificationcsv":"PHP,Perl,Java,.NET,AJAX,iPhone,Android,SQL,Drupal,Troubleshooting,C#
Programming,JavaFX,Asterisk PBX,Apache,Active Directory,Google
Adsense,Amazon Web Services,HTML5,HTML"}}

As you can see in the above picture_url is an empty array instead of
an empty string.

On Jun 8, 7:29 pm, Lisheng Yu <lish...@freelancer.com> wrote:
> Hi there,
>
> This function is supposed to return a URL for your profile picture if you
> have one, if not it will return empty. That's supposed to be right.
>
> Lisheng
>
Reply all
Reply to author
Forward
0 new messages