码迷,mamicode.com
首页 > 编程语言 > 详细

python_swift_project_swift使用

时间:2014-09-06 16:05:53      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   io   使用   div   sp   

1. swift的存取用curl命令. 我们先把pub url 和token保存起来

root@A071103070098:~# export pubURL=http://10.194.148.102:8080/v2.0/AUTH_ed03db73438343848db63062d7fd9271
root@A071103070098:~# export mytoken=MIIGKwYJKoZIhvcNAQcCoIIGHDCCBhgCAQExCTAHBgUrDgMCGjCCBIEGCSqGSIb3DQEHAaCCBHIEggRueyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wOS0wNlQwNzoyOTowMS40NTk3NzEiLCAiZXhwaXJlcyI6ICIyMDE0LTA5LTA2VDA4OjI5OjAxWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkRlZmF1bHQgVGVuYW50IiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZWQwM2RiNzM0MzgzNDM4NDhkYjYzMDYyZDdmZDkyNzEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjE5NC4xNDguMTAyOjgwODAvdjEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTk0LjE0OC4xMDI6ODA4MC92MS9BVVRIX2VkMDNkYjczNDM4MzQzODQ4ZGI2MzA2MmQ3ZmQ5MjcxIiwgImlkIjogIjRkNGFhZWViYmNmNzQxNDI4YjAwN2Q0ZTFlZmJhZTgwIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTAuMTk0LjE0OC4xMDI6ODA4MC92MS9BVVRIX2VkMDNkYjczNDM4MzQzODQ4ZGI2MzA2MmQ3ZmQ5MjcxIn1dLCAiZW5kcG9pb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5C1ngeSeGZQZsdwYa-4cJgKY3ypoUm8yL0NpQa-Mk2NJSlShKIaNnzMMHLJTaSX5nXCJf8QXUE1yHUswn0gyYal0MEn-vNtTjN14jidA5t9AJvEsRE7ezx0AJ1xqvuDs7A3a0npXwi+G8+A85ycVvyjEvJfMb15yxtnA4E6v2y-xqNH94MKDc9wEEbxsyg3f0OI3e3vzKAQ1vQ=

2. swift 获得account信息如下

root@A071103070098:~# export pubURL=http://10.194.148.102:8080/v2.0/AUTH_ed03db73438343848db63062d7fd9271
root@A071103070098:~# export mytoken=MIIGKwYJKoZIhvcNAQcCoIIGHDCCBhgCAQExCTAHBgUrDgMCGjCCBIEGCSqGSIb3DQEHAaCCBHIEggRueyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wOS0wNlQwNzoyOTowMS40NTk3NzEiLCAiZXhwaXJlcyI6ICIyMDE0LTA5LTA2VDA4OjI5OjAxWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkRlZmF1bHQgVGVuYW50IiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZWQwM2RiNzM0MzgzNDM4NDhkYjYzMDYyZDdmZDkyNzEiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjE5NC4xNDguMTAyOjgwODAvdjEiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTk0LjE0OC4xMDI6ODA4MC92MS9BVVRIX2VkMDNkYjczNDM4MzQzODQ4ZGI2MzA2MmQ3ZmQ5MjcxIiwgImlkIjogIjRkNGFhZWViYmNmNzQxNDI4YjAwN2Q0ZTFlZmJhZTgwIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTAuMTk0LjE0OC4xM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bCEhrYLQfdOJvSkxdvizUKuvBWcUKfnWta0YlMKIRxpeiUCU9v465TBg6c7ZYrIK67mX9dr6b-hOV3jJkBjZwd5C1ngeSeGZQZsdwYa-4cJgKY3ypoUm8yL0NpQa-Mk2NJSlShKIaNnzMMHLJTaSX5nXCJf8QXUE1yHUswn0gyYal0MEn-vNtTjN14jidA5t9AJvEsRE7ezx0AJ1xqvuDs7A3a0npXwi+G8+A85ycVvyjEvJfMb15yxtnA4E6v2y-xqNH94MKDc9wEEbxsyg3f0OI3e3vzKAQ1vQ=

 

python_swift_project_swift使用

标签:style   blog   http   color   os   io   使用   div   sp   

原文地址:http://www.cnblogs.com/kramer/p/3959474.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!