Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
GIS Life
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS REST APIs and Services
:
ArcGIS REST APIs & Services Ques.
:
generateToken for ArcGIS.com hosted service
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
generateToken for ArcGIS.com hosted service
Subscribe
3271
1
05-28-2014 01:31 PM
by
NilsBabel
Occasional Contributor II
05-28-2014
01:31 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I'm trying to use this sample to generate a token for a hosted feature service:
http://resources.arcgis.com/en/help/main/10.2/index.html#/Scripting_with_the_ArcGIS_Server_Administr...
However, the response sends back a 404 status. Does anybody know what the server and port number should be for AGOL for organizations? I've tried several variations:
www.arcgis.com
arcgis.com
maps.arcgis.com
usda.maps.arcgis.com
services1.arcgis.com/
I've tried several port numbers including 6080, 8080, 6443, and 443. 443 is the only port that will actually create a connection.
For the tokenURL I have tried:
/arcgis/rest/generateToken
/arcgis/admin/generateToken
/arcgis/sharing/rest/generateToken
I feel like I must just have the wrong server, url, or port number.
Tags
(3)
Tags:
_rest
developers
rest_api
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Reply
by
NilsBabel
Occasional Contributor II
06-03-2014
06:21 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
The trick is to leave out the port number for ArcGIS Online features:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Root/02r30000009t000000/
For my request I used the following ID:
"
http://www.argcis.com/sharing/rest/generateToken
" and then supplied parameters for username, password, client, and referer.
This link helps too:
http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000005qn000000
Hope that helps someone with a similar problem.
Reply
0
Kudos
Post Reply