xml OA:CIOCoE示例API调用
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml OA:CIOCoE示例API调用相关的知识,希望对你有一定的参考价值。
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<request API_ver="1.0" client="CIOCOE DEMO - READ INVOICES" client_ver="1.0" key="{{sb_key}}" namespace="{{sb_namespace}}">
<Auth>
<Login>
<company>{{sb_company}}</company>
<user>{{sb_user}}</user>
<password>{{sb_pass}}</password>
</Login>
</Auth>
<Read field="date" filter="newer-than" limit="100" method="equal to" type="Invoice">
<Date>
<year>2016</year>
<day>01</day>
<month>04</month>
</Date>
<Invoice>
<approval_status>A</approval_status>
</Invoice>
<_Return>
<id/>
<number/>
<date/>
<customerid/>
<currency/>
<total/>
</_Return>
</Read>
</request>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<request API_ver="1.0" client="CIOCOE DEMO - READ CUSTOMERS" client_ver="1.0" key="{{sb_key}}" namespace="{{sb_namespace}}">
<Auth>
<Login>
<company>{{sb_company}}</company>
<user>{{sb_user}}</user>
<password>{{sb_pass}}</password>
</Login>
</Auth>
<Read limit="100" method="equal to" type="Customer">
<Customer>
<active>1</active>
</Customer>
<_Return>
<id/>
<name/>
<company/>
<addr/>
</_Return>
</Read>
</request>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<request API_ver="1.0" client="CIOCOE DEMO - MODIFY USER" client_ver="1.0" key="{{sb_key}}" namespace="{{sb_namespace}}">
<Auth>
<Login>
<company>{{sb_company}}</company>
<user>{{sb_user}}</user>
<password>{{sb_pass}}</password>
</Login>
</Auth>
<Add type="User">
<User>
<id>5</id>
<addr>
<Address>
<phone>512-555-1234</phone>
<city>Austin</city>
<state>TX</state>
<zip>78708</zip>
<addr1>1234 W Braker Ln</addr1>
<last>Smith</last>
<middle>Adams</middle>
<salutation>Mrs.</salutation>
</Address>
</addr>
</User>
</Add>
</request>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<request API_ver="1.0" client="CIOCOE DEMO - ADD PROJECT" client_ver="1.0" key="{{sb_key}}" namespace="{{sb_namespace}}">
<Auth>
<Login>
<company>{{sb_company}}</company>
<user>{{sb_user}}</user>
<password>{{sb_pass}}</password>
</Login>
</Auth>
<Add type="Project" enable_custom="1">
<Project>
<start_date>
<Date>
<year>2016</year>
<day>01</day>
<month>04</month>
</Date>
</start_date>
<userid>1</userid>
<active>1</active>
<name>CIOCOE - API EXAMPLE</name>
<customerid>1</customerid>
<locationid>1</locationid>
<prj_opportunity_id__c>123ABC</prj_opportunity_id__c>
<prj_probability_of_close__c>1.00</prj_probability_of_close__c>
<externalid>123ABC</externalid>
<project_stageid>2</project_stageid>
<budget>10000</budget>
<budget_time>100</budget_time>
<notes>Created via XML API</notes>
<template_project_id>6</template_project_id>
<copy_project_billing_rules>1</copy_project_billing_rules>
<copy_project_billing_auto_settings>1</copy_project_billing_auto_settings>
<copy_revenue_recognition_rules>1</copy_revenue_recognition_rules>
<copy_revenue_recognition_auto_settings>1</copy_revenue_recognition_auto_settings>
<create_workspace>1</create_workspace>
</Project>
</Add>
</request>
以上是关于xml OA:CIOCoE示例API调用的主要内容,如果未能解决你的问题,请参考以下文章
用友OA 办公软件 显示“XML解析器无法加载,请安装微软的XML解析包