freelancer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +14 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +56 -0
  5. data/Rakefile +34 -0
  6. data/VERSION +1 -0
  7. data/freelancer.gemspec +299 -0
  8. data/init.rb +2 -0
  9. data/lib/freelancer.rb +59 -0
  10. data/lib/freelancer/api.rb +20 -0
  11. data/lib/freelancer/api/common.rb +58 -0
  12. data/lib/freelancer/api/employer.rb +56 -0
  13. data/lib/freelancer/api/freelancer.rb +36 -0
  14. data/lib/freelancer/api/job.rb +46 -0
  15. data/lib/freelancer/api/message.rb +89 -0
  16. data/lib/freelancer/api/notification.rb +25 -0
  17. data/lib/freelancer/api/payment.rb +123 -0
  18. data/lib/freelancer/api/profile.rb +30 -0
  19. data/lib/freelancer/api/project.rb +133 -0
  20. data/lib/freelancer/api/user.rb +86 -0
  21. data/lib/freelancer/client.rb +152 -0
  22. data/lib/freelancer/extensions/hash.rb +11 -0
  23. data/lib/freelancer/models/address.rb +46 -0
  24. data/lib/freelancer/models/balance.rb +22 -0
  25. data/lib/freelancer/models/bid.rb +41 -0
  26. data/lib/freelancer/models/config_version.rb +21 -0
  27. data/lib/freelancer/models/eligibility.rb +23 -0
  28. data/lib/freelancer/models/job.rb +33 -0
  29. data/lib/freelancer/models/job_category.rb +18 -0
  30. data/lib/freelancer/models/message.rb +32 -0
  31. data/lib/freelancer/models/milestone.rb +57 -0
  32. data/lib/freelancer/models/news.rb +15 -0
  33. data/lib/freelancer/models/notification.rb +15 -0
  34. data/lib/freelancer/models/notification_status.rb +45 -0
  35. data/lib/freelancer/models/project.rb +116 -0
  36. data/lib/freelancer/models/project_budget.rb +21 -0
  37. data/lib/freelancer/models/project_fee.rb +18 -0
  38. data/lib/freelancer/models/project_options.rb +34 -0
  39. data/lib/freelancer/models/rating.rb +21 -0
  40. data/lib/freelancer/models/review.rb +87 -0
  41. data/lib/freelancer/models/transaction.rb +39 -0
  42. data/lib/freelancer/models/user.rb +225 -0
  43. data/lib/freelancer/models/withdrawal.rb +51 -0
  44. data/lib/freelancer/models/withdrawal_fee.rb +39 -0
  45. data/lib/freelancer/support/json_mapper.rb +95 -0
  46. data/test/fixtures/common/get_config_version.json +1 -0
  47. data/test/fixtures/common/get_config_version.xml +5 -0
  48. data/test/fixtures/common/get_pending_feedback.json +1 -0
  49. data/test/fixtures/common/get_pending_feedback.xml +20 -0
  50. data/test/fixtures/common/get_terms.json +1 -0
  51. data/test/fixtures/common/get_terms.xml +4 -0
  52. data/test/fixtures/common/post_feedback.json +1 -0
  53. data/test/fixtures/common/post_feedback.xml +4 -0
  54. data/test/fixtures/common/post_reply_for_feedback.json +1 -0
  55. data/test/fixtures/common/post_reply_for_feedback.xml +4 -0
  56. data/test/fixtures/common/request_cancel_project.json +1 -0
  57. data/test/fixtures/common/request_cancel_project.xml +4 -0
  58. data/test/fixtures/common/request_withdraw_feedback.json +1 -0
  59. data/test/fixtures/common/request_withdraw_feedback.xml +4 -0
  60. data/test/fixtures/employer/choose_winner_for_project.json +1 -0
  61. data/test/fixtures/employer/choose_winner_for_project.xml +3 -0
  62. data/test/fixtures/employer/delete_draft_project.json +1 -0
  63. data/test/fixtures/employer/delete_draft_project.xml +4 -0
  64. data/test/fixtures/employer/eligible_for_trial_project.json +1 -0
  65. data/test/fixtures/employer/eligible_for_trial_project.xml +5 -0
  66. data/test/fixtures/employer/get_posted_project_list.json +1 -0
  67. data/test/fixtures/employer/get_posted_project_list.xml +38 -0
  68. data/test/fixtures/employer/invite_user_for_project.json +1 -0
  69. data/test/fixtures/employer/invite_user_for_project.xml +4 -0
  70. data/test/fixtures/employer/post_new_draft_project.json +1 -0
  71. data/test/fixtures/employer/post_new_draft_project.xml +5 -0
  72. data/test/fixtures/employer/post_new_project.json +1 -0
  73. data/test/fixtures/employer/post_new_project.xml +5 -0
  74. data/test/fixtures/employer/post_new_trial_project.json +1 -0
  75. data/test/fixtures/employer/post_new_trial_project.xml +5 -0
  76. data/test/fixtures/employer/publish_draft_project.json +1 -0
  77. data/test/fixtures/employer/publish_draft_project.xml +4 -0
  78. data/test/fixtures/employer/update_project_details.json +1 -0
  79. data/test/fixtures/employer/update_project_details.xml +4 -0
  80. data/test/fixtures/employer/upgrade_trial_project.json +1 -0
  81. data/test/fixtures/employer/upgrade_trial_project.xml +4 -0
  82. data/test/fixtures/freelancer/accept_bid_won.json +1 -0
  83. data/test/fixtures/freelancer/accept_bid_won.xml +4 -0
  84. data/test/fixtures/freelancer/get_project_list_for_placed_bids.json +1 -0
  85. data/test/fixtures/freelancer/get_project_list_for_placed_bids.xml +16 -0
  86. data/test/fixtures/freelancer/place_bid_on_project.json +1 -0
  87. data/test/fixtures/freelancer/place_bid_on_project.xml +4 -0
  88. data/test/fixtures/freelancer/retract_bid_from_project.json +1 -0
  89. data/test/fixtures/freelancer/retract_bid_from_project.xml +4 -0
  90. data/test/fixtures/job/get_category_job_list.json +1 -0
  91. data/test/fixtures/job/get_category_job_list.xml +34 -0
  92. data/test/fixtures/job/get_job_list.json +1 -0
  93. data/test/fixtures/job/get_job_list.xml +17 -0
  94. data/test/fixtures/job/get_my_job_list.json +1 -0
  95. data/test/fixtures/job/get_my_job_list.xml +11 -0
  96. data/test/fixtures/message/get_inbox_messages.json +1 -0
  97. data/test/fixtures/message/get_inbox_messages.xml +22 -0
  98. data/test/fixtures/message/get_sent_messages.json +1 -0
  99. data/test/fixtures/message/get_sent_messages.xml +22 -0
  100. data/test/fixtures/message/get_unread_count.json +1 -0
  101. data/test/fixtures/message/get_unread_count.xml +4 -0
  102. data/test/fixtures/message/load_message_thread.json +1 -0
  103. data/test/fixtures/message/load_message_thread.xml +54 -0
  104. data/test/fixtures/message/mark_message_as_read.json +1 -0
  105. data/test/fixtures/message/mark_message_as_read.xml +4 -0
  106. data/test/fixtures/message/send_message.json +1 -0
  107. data/test/fixtures/message/send_message.xml +4 -0
  108. data/test/fixtures/notification/get_news.json +1 -0
  109. data/test/fixtures/notification/get_news.xml +14 -0
  110. data/test/fixtures/notification/get_notification.json +1 -0
  111. data/test/fixtures/notification/get_notification.xml +10 -0
  112. data/test/fixtures/payment/cancel_milestone.json +1 -0
  113. data/test/fixtures/payment/cancel_milestone.xml +4 -0
  114. data/test/fixtures/payment/create_milestone_payment.json +1 -0
  115. data/test/fixtures/payment/create_milestone_payment.xml +4 -0
  116. data/test/fixtures/payment/get_account_balance_status.json +1 -0
  117. data/test/fixtures/payment/get_account_balance_status.xml +12 -0
  118. data/test/fixtures/payment/get_account_milestone_list.json +1 -0
  119. data/test/fixtures/payment/get_account_milestone_list.xml +30 -0
  120. data/test/fixtures/payment/get_account_transaction_list.json +1 -0
  121. data/test/fixtures/payment/get_account_transaction_list.xml +57 -0
  122. data/test/fixtures/payment/get_account_withdrawal_list.json +1 -0
  123. data/test/fixtures/payment/get_account_withdrawal_list.xml +42 -0
  124. data/test/fixtures/payment/get_balance.json +1 -0
  125. data/test/fixtures/payment/get_balance.xml +4 -0
  126. data/test/fixtures/payment/get_project_list_for_transfer.json +1 -0
  127. data/test/fixtures/payment/get_project_list_for_transfer.xml +52 -0
  128. data/test/fixtures/payment/get_withdrawal_fees.json +1 -0
  129. data/test/fixtures/payment/get_withdrawal_fees.xml +41 -0
  130. data/test/fixtures/payment/prepare_transfer.json +1 -0
  131. data/test/fixtures/payment/prepare_transfer.xml +4 -0
  132. data/test/fixtures/payment/release_milestone.json +1 -0
  133. data/test/fixtures/payment/release_milestone.xml +4 -0
  134. data/test/fixtures/payment/request_cancel_withdrawal.json +1 -0
  135. data/test/fixtures/payment/request_cancel_withdrawal.xml +4 -0
  136. data/test/fixtures/payment/request_release_milestone.json +1 -0
  137. data/test/fixtures/payment/request_release_milestone.xml +4 -0
  138. data/test/fixtures/payment/request_withdrawal.json +1 -0
  139. data/test/fixtures/payment/request_withdrawal.xml +6 -0
  140. data/test/fixtures/payment/transfer_money.json +1 -0
  141. data/test/fixtures/payment/transfer_money.xml +4 -0
  142. data/test/fixtures/profile/get_account_details.json +1 -0
  143. data/test/fixtures/profile/get_account_details.xml +71 -0
  144. data/test/fixtures/profile/get_profile_info.json +1 -0
  145. data/test/fixtures/profile/get_profile_info.xml +53 -0
  146. data/test/fixtures/profile/set_profile_info.json +1 -0
  147. data/test/fixtures/profile/set_profile_info.xml +4 -0
  148. data/test/fixtures/project/get_bids_details.json +1 -0
  149. data/test/fixtures/project/get_bids_details.xml +19 -0
  150. data/test/fixtures/project/get_project_budget_config.json +1 -0
  151. data/test/fixtures/project/get_project_budget_config.xml +42 -0
  152. data/test/fixtures/project/get_project_details.json +1 -0
  153. data/test/fixtures/project/get_project_details.xml +78 -0
  154. data/test/fixtures/project/get_project_fees.json +1 -0
  155. data/test/fixtures/project/get_project_fees.xml +31 -0
  156. data/test/fixtures/project/get_public_messages.json +1 -0
  157. data/test/fixtures/project/get_public_messages.xml +27 -0
  158. data/test/fixtures/project/get_sent_messages.xml +22 -0
  159. data/test/fixtures/project/get_unread_count.xml +4 -0
  160. data/test/fixtures/project/load_message_thread.xml +54 -0
  161. data/test/fixtures/project/mark_message_as_read.xml +4 -0
  162. data/test/fixtures/project/post_public_message.json +1 -0
  163. data/test/fixtures/project/post_public_message.xml +4 -0
  164. data/test/fixtures/project/search_projects.json +1 -0
  165. data/test/fixtures/project/search_projects.xml +37 -0
  166. data/test/fixtures/project/send_message.xml +4 -0
  167. data/test/fixtures/user/get_user_details.json +1 -0
  168. data/test/fixtures/user/get_user_details.xml +32 -0
  169. data/test/fixtures/user/get_user_feedback.json +1 -0
  170. data/test/fixtures/user/get_user_feedback.xml +58 -0
  171. data/test/fixtures/user/get_users_by_search.json +1 -0
  172. data/test/fixtures/user/get_users_by_search.xml +26 -0
  173. data/test/freelancer/api/common_api_test.rb +82 -0
  174. data/test/freelancer/api/employer_api_test.rb +105 -0
  175. data/test/freelancer/api/freelancer_api_test.rb +72 -0
  176. data/test/freelancer/api/job_api_test.rb +76 -0
  177. data/test/freelancer/api/message_api_test.rb +144 -0
  178. data/test/freelancer/api/notification_api_test.rb +56 -0
  179. data/test/freelancer/api/payment_api_test.rb +225 -0
  180. data/test/freelancer/api/profile_api_test.rb +54 -0
  181. data/test/freelancer/api/project_api_test.rb +229 -0
  182. data/test/freelancer/api/user_api_test.rb +153 -0
  183. data/test/freelancer/client_test.rb +5 -0
  184. data/test/freelancer/models/balance_test.rb +24 -0
  185. data/test/freelancer/models/bid_test.rb +25 -0
  186. data/test/freelancer/models/config_version.rb +14 -0
  187. data/test/freelancer/models/eligibility_test.rb +14 -0
  188. data/test/freelancer/models/job_category_test.rb +16 -0
  189. data/test/freelancer/models/job_test.rb +19 -0
  190. data/test/freelancer/models/message_test.rb +42 -0
  191. data/test/freelancer/models/milestone_test.rb +21 -0
  192. data/test/freelancer/models/news_test.rb +15 -0
  193. data/test/freelancer/models/notification_test.rb +15 -0
  194. data/test/freelancer/models/project_budget_test.rb +18 -0
  195. data/test/freelancer/models/project_fee_test.rb +17 -0
  196. data/test/freelancer/models/project_test.rb +97 -0
  197. data/test/freelancer/models/review_test.rb +36 -0
  198. data/test/freelancer/models/transaction_test.rb +29 -0
  199. data/test/freelancer/models/user_test.rb +94 -0
  200. data/test/freelancer/models/withdrawal_fee_test.rb +19 -0
  201. data/test/freelancer/models/withdrawal_test.rb +20 -0
  202. data/test/freelancer/oauth_test.rb +112 -0
  203. data/test/freelancer_test.rb +1 -0
  204. data/test/test_helper.rb +42 -0
  205. metadata +427 -0
@@ -0,0 +1 @@
1
+ {"json-result":{"count":5,"items":{"fee":[{"withdrawtype":"paypal","charge":"1","minamount":"30","maxamount":"10000","countrycode":""},{"withdrawtype":"wire","charge":"25","minamount":"100","maxamount":0,"countrycode":""},{"withdrawtype":"moneybookers","charge":"0","minamount":"30","maxamount":"10000","countrycode":""},{"withdrawtype":"wire","charge":"25","minamount":"30","maxamount":0,"countrycode":"SE"},{"withdrawtype":"payoneer","charge":"0","minamount":"30","maxamount":"10000","countrycode":""}]}}}
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <count>5</count>
4
+ <items>
5
+ <fee>
6
+ <withdrawtype>paypal</withdrawtype>
7
+ <charge>1</charge>
8
+ <minamount>30</minamount>
9
+ <maxamount>10000</maxamount>
10
+ <countrycode />
11
+ </fee>
12
+ <fee>
13
+ <withdrawtype>wire</withdrawtype>
14
+ <charge>25</charge>
15
+ <minamount>100</minamount>
16
+ <maxamount>0</maxamount>
17
+ <countrycode />
18
+ </fee>
19
+ <fee>
20
+ <withdrawtype>moneybookers</withdrawtype>
21
+ <charge>0</charge>
22
+ <minamount>30</minamount>
23
+ <maxamount>10000</maxamount>
24
+ <countrycode />
25
+ </fee>
26
+ <fee>
27
+ <withdrawtype>wire</withdrawtype>
28
+ <charge>25</charge>
29
+ <minamount>30</minamount>
30
+ <maxamount>0</maxamount>
31
+ <countrycode>SE</country_code>
32
+ </fee>
33
+ <fee>
34
+ <withdrawtype>payoneer</withdrawtype>
35
+ <charge>0</charge>
36
+ <minamount>30</minamount>
37
+ <maxamount>10000</maxamount>
38
+ <countrycode />
39
+ </fee>
40
+ </items>
41
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result>
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result>
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1,"status":"Delayed","charges":1}}
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result>
3
+ <statusconfirmation>1</statusconfirmation>
4
+ <status>Delayed</status>
5
+ <charge>1</charge>
6
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"username":"test-username","userid":"123456","fullname":"Test User","company_name":"Test Company","type_of_work":"Both","picture_url":null,"addressline1":"Some Street","addressline2":"","city":"Oslo","state":"","country":"Norway","postalcode":"0123","phone":"4712345678","fax":"","notificationformat":"text/html","emailnotificationstatus":0,"receivenewsstatus":"0","bidwonnotificationstatus":"1","bidplacednotificationstatus":"0","newprivatemessagestatus":"1","profiletext":"Sample profile text","vision":"Sample vision text","keywords":"Sample keyword text","hourlyrate":"20","skills":"Sample skill 1\nSample skill 2\nSample skill 3\nSample skill 4\n","frozenBuyerProjectList":[{"id":123,"name":"Test project","url":"http://www.sandbox.freelancer.com/NET/Test-project.html"}],"qualificationcsv":"PHP,Perl,JSP,Ruby &amp; Ruby on Rails"}}
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <username>lsy001</username>
4
+ <userid>1619632</userid>
5
+ <fullname>lisheng</fullname>
6
+ <company_name>gaf</company_name>
7
+ <type_of_work>Both</type_of_work>
8
+ <picture_url>k.jpg</picture_url>
9
+ <addressline1>123 pitt st.</addressline1>
10
+ <addressline2 />
11
+ <city>sydney</city>
12
+ <state />
13
+ <country>Australia</country>
14
+ <postalcode>2000</postalcode>
15
+ <phone>0404044044</phone>
16
+ <fax />
17
+ <notificationformat>text/html</notificationformat>
18
+ <emailnotificationstatus>1</emailnotificationstatus>
19
+ <receivenewsstatus>0</receivenewsstatus>
20
+ <bidwonnotificationstatus>1</bidwonnotificationstatus>
21
+ <bidplacednotificationstatus>1</bidplacednotificationstatus>
22
+ <newprivatemessagestatus>1</newprivatemessagestatus>
23
+ <profiletext />
24
+ <vision />
25
+ <keywords />
26
+ <hourlyrate />
27
+ <skills>skillA
28
+ skillB
29
+ skillC
30
+ skillD
31
+ </skills>
32
+ <qualificationcsv>PHP,Java,.NET</qualificationcsv>
33
+ <openBuyerProjectList>
34
+ <project>
35
+ <id>658030</id>
36
+ <name>test project 33 posted by API curl</name>
37
+ <url>http://www.sandbox.freelancer.com/PHP-Java/test-project-posted-API-curl.658030.html</url>
38
+ </project>
39
+ <project>
40
+ <id>658029</id>
41
+ <name>test project 3 posted by API curl</name>
42
+ <url>http://www.sandbox.freelancer.com/PHP-Java/test-project-posted-API-curl.658029.html</url>
43
+ </project>
44
+ <project>
45
+ <id>658028</id>
46
+ <name>test project 2 posted by API curl</name>
47
+ <url>http://www.sandbox.freelancer.com/PHP-Java/test-project-posted-API-curl.658028.html</url>
48
+ </project>
49
+ </openBuyerProjectList>
50
+ <closeBuyerProjectList>
51
+ <project>
52
+ <id>658026</id>
53
+ <name>test project 1 posted by API curl</name>
54
+ <url>http://www.sandbox.freelancer.com/PHP-Java/test-project-posted-API-curl.html</url>
55
+ </project>
56
+ </closeBuyerProjectList>
57
+ <bidSellerProjectList>
58
+ <project>
59
+ <id>658033</id>
60
+ <name>project2 for lsy001</name>
61
+ <url>http://www.sandbox.freelancer.com/Java-NET/project-for-lsy.658033</url>
62
+ </project>
63
+ </bidSellerProjectList>
64
+ <wonSellerProjectList>
65
+ <project>
66
+ <id>658031</id>
67
+ <name>project for lsy001</name>
68
+ <url>http://www.sandbox.freelancer.com/Java-NET/project-for-lsy</url>
69
+ </project>
70
+ </wonSellerProjectList>
71
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"username":"test-user","userid":"123456","profiletext":"Sample profile text","vision":"Sample vision text","keywords":"Sample keyword text","hourlyrate":"20","qualificationcsv":"PHP,Perl,JSP,Ruby &amp; Ruby on Rails","frozenBuyerProjectList":[{"id":123,"name":"Test project","url":"http://www.sandbox.freelancer.com/NET/Test-project.html"}]}}
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <username>apx</username>
4
+ <userid>1239144</userid>
5
+ <profiletext />
6
+ <vision />
7
+ <keywords />
8
+ <hourlyrate>50</hourlyrate>
9
+ <qualificationcsv>PHP,C Programming,Project Management,iPhone,Cloud Computing,Algorithm,Objective C,MySQL</qualificationcsv>
10
+ <openBuyerProjectList>
11
+ <project>
12
+ <id>658088</id>
13
+ <name>Luke: project to bid on</name>
14
+ <url>http://www.sandbox.freelancer.com/iPhone/Luke-project-bid.html</url>
15
+ </project>
16
+ <project>
17
+ <id>658087</id>
18
+ <name>Luke: project posted form iPhone. Minimum details</name>
19
+ <url>http://www.sandbox.freelancer.com/Luke-project-posted-form-iPhone.html</url>
20
+ </project>
21
+ <project>
22
+ <id>658086</id>
23
+ <name>Luke: project x [qwerty]</name>
24
+ <url>http://www.sandbox.freelancer.com/iPhone/Luke-project-qwerty.html</url>
25
+ </project>
26
+ </openBuyerProjectList>
27
+ <closeBuyerProjectList>
28
+ <project>
29
+ <id>553893</id>
30
+ <name>Photography Portfolio Website (Read Carefully)</name>
31
+ <url>http://www.sandbox.freelancer.com/AJAX/Photography-Portfolio-Website-Read.html</url>
32
+ </project>
33
+ <project>
34
+ <id>553312</id>
35
+ <name>Photography Portfolio Website</name>
36
+ <url>http://www.sandbox.freelancer.com/Javascript-Website-Design/Photography-Portfolio-Website.html</url>
37
+ </project>
38
+ </closeBuyerProjectList>
39
+ <frozenBuyerProjectList>
40
+ <project>
41
+ <id>641194</id>
42
+ <name>Retrieve My Twitter Name</name>
43
+ <url>http://www.sandbox.freelancer.com/641194.html</url>
44
+ </project>
45
+ </frozenBuyerProjectList>
46
+ <bidSellerProjectList>
47
+ <project>
48
+ <id>658013</id>
49
+ <name>Messenger for iPhone</name>
50
+ <url>http://www.sandbox.freelancer.com/Java-iPhone/Messenger-for-iPhone</url>
51
+ </project>
52
+ </bidSellerProjectList>
53
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"statusconfirmation":1}}
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <statusconfirmation>1</statusconfirmation>
4
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"count":1,"items":[{"provider":"test-username","provider_userid":"123456","bid_amount":"250","milestone":"-","highlighted":false,"period":"1","descr":"Test, ignore","submittime":"2010-08-09 12:28:57","rating":"0","total_msg_count":0,"unread_msg_count":0}]}}
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <count>1</count>
4
+ <items>
5
+ <bid>
6
+ <provider>lsy001</provider>
7
+ <provider_userid>1102865</provider>
8
+ <bid_amount>300</bid_amount>
9
+ <milestone>20%($60)</milestone>
10
+ <highlighted>1</highlighted>
11
+ <period>20</period>
12
+ <descr>bid by API</descr>
13
+ <submittime />
14
+ <rating>9.25</rating>
15
+ <total_msg_count>0</total_msg_count>
16
+ <unread_msg_count>0</unread_msg_count>
17
+ </bid>
18
+ </items>
19
+ </project>
@@ -0,0 +1 @@
1
+ {"json-result":{"count":6,"items":[{"id":"5","minbudget":"30","maxbudget":"250","name":"simple project"},{"id":"1","minbudget":"250","maxbudget":"750","name":"very small project"},{"id":"2","minbudget":"750","maxbudget":"1500","name":"small project"},{"id":"3","minbudget":"1500","maxbudget":"3000","name":"medium project"},{"id":"4","minbudget":"3000","maxbudget":"5000","name":"large project"},{"id":"6","minbudget":"5000","maxbudget":null,"name":"larger project"}]}}
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <count>6</count>
4
+ <items>
5
+ <budget>
6
+ <id>5</id>
7
+ <minbudget>30</minbudget>
8
+ <maxbudget>250</maxbudget>
9
+ <name>simple project</name>
10
+ </budget>
11
+ <budget>
12
+ <id>1</id>
13
+ <minbudget>250</minbudget>
14
+ <maxbudget>750</maxbudget>
15
+ <name>very small project</name>
16
+ </budget>
17
+ <budget>
18
+ <id>2</id>
19
+ <minbudget>750</minbudget>
20
+ <maxbudget>1500</maxbudget>
21
+ <name>small project</name>
22
+ </budget>
23
+ <budget>
24
+ <id>3</id>
25
+ <minbudget>1500</minbudget>
26
+ <maxbudget>3000</maxbudget>
27
+ <name>medium project</name>
28
+ </budget>
29
+ <budget>
30
+ <id>4</id>
31
+ <minbudget>3000</minbudget>
32
+ <maxbudget>5000</maxbudget>
33
+ <name>large project</name>
34
+ </budget>
35
+ <budget>
36
+ <id>6</id>
37
+ <minbudget>5000</minbudget>
38
+ <maxbudget />
39
+ <name>larger project</name>
40
+ </budget>
41
+ </items>
42
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"id":280,"name":"Test project","url":"http://www.sandbox.freelancer.com/projects/PHP-NET/Test-project.html","start_unixtime":1281232266,"start_date":"2010-08-07 21:51:06","end_unixtime":1281664266,"end_date":"2010-08-12 21:51:06","buyer":{"url":"http://www.sandbox.freelancer.com/users/123456.html","id":123456,"username":"test-username"},"state":"C","short_descr":"This is just a test project.","options":{"featured":0,"nonpublic":0,"trial":0,"fulltime":0,"for_gold_members":1,"hidden_bids":0},"budget":{"min":250,"max":750},"jobs":[".NET","PHP"],"bid_stats":{"count":1,"avg":250},"additional_descr":null,"additional_files":null,"seller":[{"id":123456,"username":"test-username","awardStatus":"awarded"}]}}
@@ -0,0 +1,78 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <id>588582</id>
4
+ <name>sign design web software</name>
5
+ <url>
6
+ http://www.sandbox.freelancer.com/projects/PHP-ASP/sign-design-web-software.html
7
+ </url>
8
+ <start_unixtime>1263332216</start_unixtime>
9
+ <start_date>2010-01-12 16:36:56</start_date>
10
+ <end_unixtime>1263591416</end_unixtime>
11
+ <end_date>2010-01-12 16:36:56</end_date>
12
+ <buyer>
13
+ <url>
14
+ http://www.sandbox.freelancer.com/users/1353095.html
15
+ </url>
16
+ <id>1353095</id>
17
+ <username>billk89</username>
18
+ </buyer>
19
+ <state>C</state>
20
+ <short_descr>
21
+ Create and upload sign design web software for our client nlsigndesign.com
22
+ Public internet users must be able to create there own signs online, then save and submit as a file.
23
+ Features must be the same as buildasign.com or very close.
24
+ Our servers run either Linux or windows. they are using aspx but what ever works.
25
+ </short_descr>
26
+ <options>
27
+ <featured>1</featured>
28
+ <nonpublic>0</nonpublic>
29
+ <trial>0</trial>
30
+ <fulltime>0</fulltime>
31
+ <for_gold_members>0</for_gold_members>
32
+ <hidden_bids>0</hidden_bids>
33
+ </options>
34
+ <budget>
35
+ <min>750</min>
36
+ <max>1500</max>
37
+ </budget>
38
+ <jobs>
39
+ <job>.NET</job>
40
+ <job>ASP</job>
41
+ <job>Javascript</job>
42
+ <job>JSP</job>
43
+ <job>PHP</job>
44
+ </jobs>
45
+ <bid_stats>
46
+
47
+ <count>9</count>
48
+ <avg>1350</avg>
49
+ </bid_stats>
50
+ <addtional_descr>
51
+ <id>51764</id>
52
+ <project_id>658356</project_id>
53
+ <submitdate>2010-05-13 20:10:46</submitdate>
54
+ <descr>additional information</descr>
55
+ <submitdate_f>Today</submitdate_f>
56
+ <submitdate_full>05/13/2010 at 20:10 EDT</submitdate_full>
57
+ <descr_html>additional information</descr_html>
58
+ </addtional_descr>
59
+ <seller>
60
+ <id>54403</id>
61
+ <username>aamiriqbal</username>
62
+ <awardStatus>awarded</awardStatus>
63
+ </seller>
64
+ <seller>
65
+ <id>140002</id>
66
+ <username>becomeexpert</username>
67
+ <awardStatus>pending</awardStatus>
68
+ </seller>
69
+ <additional_files>
70
+ <id>1</id>
71
+ <project_id>658356</project_id>
72
+ <name>frame002.gif</name>
73
+ <submitdate>2010-05-12 13:29:53</submitdate>
74
+ <submitdate_f>05-12-2010</submitdate_f>
75
+ <submitdate_full>05/12/2010 at 13:29 UTC</submitdate_full>
76
+ <full_file_url>http://data.sandbox.freelancer.com/project/10/frame002.gif</full_file_url>
77
+ </additional_files>
78
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"count":5,"items":[{"projecttype":"featured_create","projectdesc":"Featured projects get lots more bids, and tend to get more experienced, higher quality freelancers bidding! They have high visibility, are listed on the main page and multiple other pages","projectfees":"19"},{"projecttype":"nonpublic_create","projectdesc":"Hide project details from search engines and users that are not logged in","projectfees":"3"},{"projecttype":"hidden_bids","projectdesc":"Hide all bids on my project from other users. To view bids you must login.","projectfees":"3"},{"projecttype":"post_project","projectdesc":"This fee is refunded as soon as provider accepts to do a project OR when the project is cancelled properly.","projectfees":"5"},{"projecttype":"fulltime_create","projectdesc":"No other fees are charged to employers or workers, including project comissions. Most buyers will save a lot of money with this option","projectfees":"99.95"}]}}
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <count>5</count>
4
+ <items>
5
+ <fees>
6
+ <projecttype>featured_create</projecttype>
7
+ <projectdesc>Featured projects get lots more bids, and tend to get more experienced, higher quality freelancers bidding! They have high visibility, are listed on the main page and multiple other pages</projectdesc>
8
+ <projectfees>19</projectfees>
9
+ </fees>
10
+ <fees>
11
+ <projecttype>nonpublic_create</projecttype>
12
+ <projectdesc>Hide project details from search engines and users that are not logged in</projectdesc>
13
+ <projectfees>3</projectfees>
14
+ </fees>
15
+ <fees>
16
+ <projecttype>hidden_bids</projecttype>
17
+ <projectdesc>Hide all bids on my project from other users. To view bids you must login.</projectdesc>
18
+ <projectfees>1</projectfees>
19
+ </fees>
20
+ <fees>
21
+ <projecttype>post_project</projecttype>
22
+ <projectdesc>This fee is refunded as soon as provider accepts to do a project OR when the project is cancelled properly.</projectdesc>
23
+ <projectfees>5</projectfees>
24
+ </fees>
25
+ <fees>
26
+ <projecttype>fulltime_create</projecttype>
27
+ <projectdesc>No other fees are charged to employers or workers, including project comissions. Most buyers will save a lot of money with this option</projectdesc>
28
+ <projectfees>99.95</projectfees>
29
+ </fees>
30
+ </items>
31
+ </xml-result>
@@ -0,0 +1 @@
1
+ {"json-result":{"count":1,"items":[{"fromusername":"test-username","fromuserid":"123456","datetime":"2010-08-08 02:14:57","text":"Test","attachmentlink":null}]}}
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xml-result xmlns="http://api.freelancer.com/schemas/xml-0.1">
3
+ <count>3</count>
4
+ <items>
5
+ <message>
6
+ <fromusername>lsy001</messagebyusername>
7
+ <fromuserid>1353594</messagebyuserid>
8
+ <datetime>2010-04-06 04:30:01</messagedatetime>
9
+ <text>messages posted by API</text>
10
+ <attachmentlink />
11
+ </message>
12
+ <message>
13
+ <fromusername>lsy001</messagebyusername>
14
+ <fromuserid>1353594</messagebyuserid>
15
+ <datetime>2010-04-06 04:26:50</messagedatetime>
16
+ <text>messages posted by API</text>
17
+ <attachmentlink />
18
+ </message>
19
+ <message>
20
+ <fromusername>blueeyeboy</messagebyusername>
21
+ <fromuserid>1103918</messagebyuserid>
22
+ <datetime>2009-06-25 17:13:35</messagedatetime>
23
+ <text>well dear you wanna work i accept your deal &amp; i do this work in yuor condition &amp; in your budget so what you say dear</text>
24
+ <attachmentlink />
25
+ </message>
26
+ </items>
27
+ </xml-result>