SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
Slideshare Free API – Version 1.0


Initial configuration
In order to use the slideshare API, you will need to first create an account on Slideshare.
Once you do, visit the following url (http://www.slideshare.net/developers/applyforapi)
and fill out a form. At this time, you will need to indicate a point of contact (name and
email address). If your account is approved, we will provide you with

1) An API Key (needed use of the API)
2) A shared secret (a string used to sign your API calls)

API Validation using the slideshare API
All requests made using the SlideShare API must have the following parameters
    1) api_key: set this value to the API Key that SlideShare has provided for you.
    2) ts: set this value to the current time in Unix TimeStamp format, to the nearest
       second (http://en.wikipedia.org/wiki/Unix_time) .
    3) hash: set this value to the SHA1 hash of the string created by concatenation of
       the shared secret and the timestamp(i.e ts)

Authentication using the slideshare API
Requests that request private data from users, or that act on their behalf, must include the
following parameters.
    1) username: set this to the username of the account whose data is being requested
    2) password: set this to the password of the account whose data is being requested

Note: these requests are marked with the phrase “auth needed” in the documentation Not
all the requests require authentication.

Uploading Slideshows using the slideshare API (auth needed)
Content can be uploaded to the slideshare API using a simple HTTP POST to the
following URL.

http://www.slideshare.net/api/1/upload_slideshow

with the following required parameters:
api_key
ts
hash
username
password
slideshow_title
slideshow_srcfile

and the following optional parameters:
slideshow_description
slideshow_tags (tags should be space separated, use quotes for multiple
word tags)
make_src_public (should be Y if you want users to be able to download
the ppt file later, N otherwise. Default is Y)

The document will upload into the account of the user specified by (username /
password). So, for example, a bulk uploader would include the api_key (and hash)
associated with the API account, and the username and password associated with the
account being uploaded to.

You will receive back an xml document that looks like the following
<SlideShowUploaded>
<SlideShowID>{slideshow id goes here}</SlideShowID>
</SlideShowUploaded>

The slideshare ID will be necessary for retrieving the slideshow embed code, once the
slideshow has been converted into flash.

If there was an error of some kind, you will receive back an xml document that looks like
the following
<SlideShareServiceError>
<Message id={various numbers go here}>{various messages go
here}</Message>
</SlideShareServiceError>

The message / ID in a SlideShareService error will be one of the following:
1   Failed API validation
2   Failed User authentication
3   Missing title
4   Missing file for upload
5   Blank title
6   Slideshow file isn't a source object
7   Invalid extension
8   File size too big

Retrieving Embed Code for a Slideshow using the SlideShare API
After a file has been uploaded to SlideShare, it will be converted into a series of flash
files suitable for streaming over the internet (this usually takes 1-10 minutes, depending
on the size of the file and how many other files are in the queue). The files will be hosted
by slideshare: clients embed them into their own html using an “embed code”, similar to
the embed codes used on sites like youtube for embedding videos.

Content can be retrieved from the slideshare API using a simple HTTP POST to the
following url:
http://www.slideshare.net/api/1/get_slideshow

with the following parameters:
api_key
ts
hash
slideshow_id

You will receive back an xml document that looks like the following
<Slideshow>
<Status>0, 1, 2, or 3</Status>
<StatusDescription>{queued, processing, ready, or
failed}</StatusDescription>
<Title>{title goes here}</Title>
<Description>{description goes here}</Description>
<Tags>{all tags go here, separated by spaces. Multiple word tags are
surrounded by double quotes}</Tags>
<EmbedCode>{embed code goes here}</EmbedCode>
<Thumbnail>{url for thumbnail goes here}</Thumbnail>
<Permalink>{Permanent link for the slideshow}</Permalink>
<Views>{Number of views for the slideshow}</Views>
</Slideshow>

Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed). EmbedCode and
Thumbnail will ONLY be provided if status is 2(ready).

If there was an error of some kind, you will receive back an xml document that looks like
the following
<SlideShareServiceError>
<Message id={various numbers go here}>{various messages go here, depending on the
error}</Message>
</SlideShareServiceError>

The message in a SlideShareService error will be one of the following:
1 Failed API validation
9 SlideShow Not Found

Retrieving SlideShows for a given user
Content can be retrieved from the slideshare API using an HTTP GET to the following
url:
http://www.slideshare.net/api/1/get_slideshow_by_user

with the following parameters:
api_key
ts
hash
username_for

Optional parameters (Useful for pagination)
Offset : The offset from which we retrieve slideshows
Limit : How many slideshows to retrieve

You will receive back an xml document that looks like the following
<User>{Name goes here}</User>
<count>{Total number of slideshows for given user}</count>

<Slideshow>
<EmbedCode>{embed code goes here}</EmbedCode>
<Thumbnail>{url for thumbnail goes here}</Thumbnail>
<Title>{title goes here}</Title>
<Description>{description goes here}</Description>
<Status>0, 1, 2, or 3</Status>
<StatusDescription>{queued, processing, ready, or
failed}</StatusDescription>
<Permalink>{Permanent link for the slideshow}</Permalink>
<Views>{Number of views for the slideshow}</Views>
</Slideshow>
{repeat SlideShow element as many times as is necessary}
</User>
Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed).

If there was an error of some kind, you will receive back an xml document that looks like
the following
<SlideShareServiceError>
<Message id={various numbers go here}>{various messages go here}</Message>
</SlideShareServiceError>

The message in a SlideShareService error will be one of the following:
1 Failed API validation
10 User Not Found

Retrieving SlideShows for a given tag
Content can be retrieved from the slideshare API using a simple HTTP GET to the
following url:

http://www.slideshare.net/api/1/get_slideshow_by_tag

with the following parameters:
api_key
ts
hash
tag

Optional parameters (Useful for pagination)
Offset : The offset from which we retrieve slideshows
Limit : How many slideshows to retrieve

You will receive back an xml document that looks like the following
<Tag>
<name>{tag}</name>
<count>{Total number of slideshows for given tag}</count>

<Slideshow>
<EmbedCode>{embed code goes here}</EmbedCode>
<Thumbnail>{url for thumbnail goes here}</Thumbnail>
<Title>{title goes here}</Title>
<Description>{description goes here}</Description>
<Status>0, 1, 2, or 3</Status>
<StatusDescription>{queued, processing, ready, or
failed}</StatusDescription>
<Permalink>{Permanent link for the slideshow}</Permalink>
<Views>{Number of views for the slideshow}</Views>
</Slideshow>
{repeat SlideShow element as many times as is necessary}
</Tag>
Status for each slideshow can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed).

If there was an error of some kind, you will receive back an xml document that looks like
the following
<SlideShareServiceError>
<Message id={various numbers go here}>{various messages go here}</Message>
</SlideShareServiceError>

The message in a SlideShareService error will be one of the following:
1 Failed API validation

Retrieving SlideShows for a given group
Content can be retrieved from the slideshare API using a simple HTTP GET to the
following url:
http://www.slideshare.net/api/1/get_slideshows_from_group

with the following parameters:
api_key
ts
hash
group_name

Optional parameters (Useful for pagination)
Offset : The offset from which we retrieve slideshows
Limit : How many slideshows to retrieve

You will receive back an xml document that looks like the following
<Group>{name goes here}</Group>
<Slideshow>
<EmbedCode>{embed code goes here}</EmbedCode>
<Thumbnail>{url for thumbnail goes here}</Thumbnail>
<Title>{title goes here}</Title>
<Description>{description goes here}</Description>
<Status>0, 1, 2, or 3</Status>
<StatusDescription>{queued, processing, ready, or
failed}</StatusDescription>
<Permalink>{Permanent link for the slideshow}</Permalink>
<Views>{Number of views for the slideshow}</Views>
</Slideshow>
{repeat SlideShow element as many times as is necessary}
</Group>

Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed).

If there was an error of some kind, you will receive back an xml document that looks like
the following
<SlideShareServiceError>
<Message id={various numbers go here}>{various messages go here}</Message>
</SlideShareServiceError>
The message in a SlideShareService error will be one of the following:
1 Failed API validation
11 Group Not Found




Complete List of Error Codes
1 Failed API validation
2 Failed User authentication
3 Missing title
4 Missing file for upload
5 Blank title
6 Slideshow file isn't a source object
7 Invalid extension
8 File size too big
9 SlideShow Not Found
10 User Not Found
11 Group Not Found
12 No Tag Provided
13 Tag Not Found
99 Account Exceeded Daily Limit
100 Your Account has been blocked

Notes about using API
Your use of the API is at the discretion of SlideShare, and is restricted to non-commercial
use. For full details, see the API terms of service
(http://www.slideshare.net/developers/tos).

It is recommended that you join the SlideShare API mailing list at
(http://groups.google.com/group/slideshare-developers)
So that you can interact with other API users and get regular updates about the
SlideShare API.

In particular, do NOT write code that calls our API every time you get a web request.
Cache the information so that you can serve it as needed to your users. API calls are
limited to 1000 per day per API_Key. Calls that exceed this limit will receive an error
message.

<SlideShareServiceError>
<Message id=”99”>Account Exceeded Daily Limit</Message>
</SlideShareServiceError>

Mais conteúdo relacionado

Mais procurados

Developing an intranet on office 365
Developing an intranet on office 365Developing an intranet on office 365
Developing an intranet on office 365
Eric Shupps
 
Making Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph RuepprichMaking Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph Ruepprich
Enkitec
 
Oauth2 and OWSM OAuth2 support
Oauth2 and OWSM OAuth2 supportOauth2 and OWSM OAuth2 support
Oauth2 and OWSM OAuth2 support
Gaurav Sharma
 

Mais procurados (20)

Developing an intranet on office 365
Developing an intranet on office 365Developing an intranet on office 365
Developing an intranet on office 365
 
Understanding JSP -Servlets
Understanding JSP -ServletsUnderstanding JSP -Servlets
Understanding JSP -Servlets
 
Making Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph RuepprichMaking Sense of APEX Security by Christoph Ruepprich
Making Sense of APEX Security by Christoph Ruepprich
 
Windsor AWS UG Deep dive IAM 2 - no json101
Windsor AWS UG   Deep dive IAM 2 - no json101Windsor AWS UG   Deep dive IAM 2 - no json101
Windsor AWS UG Deep dive IAM 2 - no json101
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
.NET Core, ASP.NET Core Course, Session 18
 .NET Core, ASP.NET Core Course, Session 18 .NET Core, ASP.NET Core Course, Session 18
.NET Core, ASP.NET Core Course, Session 18
 
Oauth2 and OWSM OAuth2 support
Oauth2 and OWSM OAuth2 supportOauth2 and OWSM OAuth2 support
Oauth2 and OWSM OAuth2 support
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
SEC302 Delegating Access to Your AWS Environment - AWS re: Invent 2012
SEC302 Delegating Access to Your AWS Environment - AWS re: Invent 2012SEC302 Delegating Access to Your AWS Environment - AWS re: Invent 2012
SEC302 Delegating Access to Your AWS Environment - AWS re: Invent 2012
 
.NET Core, ASP.NET Core Course, Session 19
 .NET Core, ASP.NET Core Course, Session 19 .NET Core, ASP.NET Core Course, Session 19
.NET Core, ASP.NET Core Course, Session 19
 
SFDC Inbound Integrations
SFDC Inbound IntegrationsSFDC Inbound Integrations
SFDC Inbound Integrations
 
Ch3 server controls
Ch3 server controlsCh3 server controls
Ch3 server controls
 
03. sql and other injection module v17
03. sql and other injection module v1703. sql and other injection module v17
03. sql and other injection module v17
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Sql Injection Myths and Fallacies
Sql Injection Myths and FallaciesSql Injection Myths and Fallacies
Sql Injection Myths and Fallacies
 
Flash And The City 2010
Flash And The City 2010Flash And The City 2010
Flash And The City 2010
 
.NET Core, ASP.NET Core Course, Session 11
.NET Core, ASP.NET Core Course, Session 11.NET Core, ASP.NET Core Course, Session 11
.NET Core, ASP.NET Core Course, Session 11
 
.NET Core, ASP.NET Core Course, Session 7
.NET Core, ASP.NET Core Course, Session 7.NET Core, ASP.NET Core Course, Session 7
.NET Core, ASP.NET Core Course, Session 7
 
Aws meetup systems_manager
Aws meetup systems_managerAws meetup systems_manager
Aws meetup systems_manager
 
DataFX - JavaOne 2013
DataFX - JavaOne 2013DataFX - JavaOne 2013
DataFX - JavaOne 2013
 

Destaque

Superadas
SuperadasSuperadas
Superadas
avs
 
Active Galactic Nuclei
Active Galactic NucleiActive Galactic Nuclei
Active Galactic Nuclei
guest2ff6d8
 
Diadasantantoni 120109133831-phpapp02
Diadasantantoni 120109133831-phpapp02Diadasantantoni 120109133831-phpapp02
Diadasantantoni 120109133831-phpapp02
LauraGR
 
Ovetto X Students
Ovetto X StudentsOvetto X Students
Ovetto X Students
guest8042e6
 
2008 Feb To April
2008 Feb To April2008 Feb To April
2008 Feb To April
EdandDottie
 
Vectors Scalars 1
Vectors Scalars 1Vectors Scalars 1
Vectors Scalars 1
zglazenburg
 
4.1.08 Pascals Triangle2
4.1.08   Pascals Triangle24.1.08   Pascals Triangle2
4.1.08 Pascals Triangle2
chrismac47
 

Destaque (20)

Superadas
SuperadasSuperadas
Superadas
 
Active Galactic Nuclei
Active Galactic NucleiActive Galactic Nuclei
Active Galactic Nuclei
 
Fundraising in Silicon Valley
Fundraising in Silicon ValleyFundraising in Silicon Valley
Fundraising in Silicon Valley
 
Reglamento 2016
Reglamento 2016Reglamento 2016
Reglamento 2016
 
Diadasantantoni 120109133831-phpapp02
Diadasantantoni 120109133831-phpapp02Diadasantantoni 120109133831-phpapp02
Diadasantantoni 120109133831-phpapp02
 
迷雾中奔跑-互联网产品开发思考
迷雾中奔跑-互联网产品开发思考迷雾中奔跑-互联网产品开发思考
迷雾中奔跑-互联网产品开发思考
 
Presentaties Vormgeven en Uitvoeren
Presentaties Vormgeven en UitvoerenPresentaties Vormgeven en Uitvoeren
Presentaties Vormgeven en Uitvoeren
 
Ovetto X Students
Ovetto X StudentsOvetto X Students
Ovetto X Students
 
Klokkijken Met Sarie
Klokkijken Met  SarieKlokkijken Met  Sarie
Klokkijken Met Sarie
 
2008 Feb To April
2008 Feb To April2008 Feb To April
2008 Feb To April
 
Seven Life Lessons
Seven Life LessonsSeven Life Lessons
Seven Life Lessons
 
Chemistry Item#5
Chemistry Item#5Chemistry Item#5
Chemistry Item#5
 
Netway methodology
Netway methodologyNetway methodology
Netway methodology
 
RSS and Reading Blogs
RSS and Reading BlogsRSS and Reading Blogs
RSS and Reading Blogs
 
SYSADMIN TNG
SYSADMIN TNGSYSADMIN TNG
SYSADMIN TNG
 
Nieuwjaarsgroetjes
NieuwjaarsgroetjesNieuwjaarsgroetjes
Nieuwjaarsgroetjes
 
Gc Fid Marte
Gc Fid MarteGc Fid Marte
Gc Fid Marte
 
Vectors Scalars 1
Vectors Scalars 1Vectors Scalars 1
Vectors Scalars 1
 
4.1.08 Pascals Triangle2
4.1.08   Pascals Triangle24.1.08   Pascals Triangle2
4.1.08 Pascals Triangle2
 
I-9 Compliance
I-9 ComplianceI-9 Compliance
I-9 Compliance
 

Semelhante a Api Doc

12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
Jonathan Linowes
 

Semelhante a Api Doc (20)

Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)Webservices in SalesForce (part 1)
Webservices in SalesForce (part 1)
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Doc
DocDoc
Doc
 
Doc
DocDoc
Doc
 
Active server pages
Active server pagesActive server pages
Active server pages
 
Sessions n cookies
Sessions n cookiesSessions n cookies
Sessions n cookies
 
When dynamic becomes static - the next step in web caching techniques
When dynamic becomes static - the next step in web caching techniquesWhen dynamic becomes static - the next step in web caching techniques
When dynamic becomes static - the next step in web caching techniques
 
Wordcamp Toronto Presentation
Wordcamp Toronto PresentationWordcamp Toronto Presentation
Wordcamp Toronto Presentation
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet
 
12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat12 core technologies you should learn, love, and hate to be a 'real' technocrat
12 core technologies you should learn, love, and hate to be a 'real' technocrat
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep Dive
 
Site optimization
Site optimizationSite optimization
Site optimization
 
Play Framework: async I/O with Java and Scala
Play Framework: async I/O with Java and ScalaPlay Framework: async I/O with Java and Scala
Play Framework: async I/O with Java and Scala
 
4.4 PHP Session
4.4 PHP Session4.4 PHP Session
4.4 PHP Session
 
Gears User Guide
Gears User GuideGears User Guide
Gears User Guide
 
Basics Of Servlet
Basics Of ServletBasics Of Servlet
Basics Of Servlet
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 
Extending Oracle SSO
Extending Oracle SSOExtending Oracle SSO
Extending Oracle SSO
 
Designing CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsDesigning CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIs
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Api Doc

  • 1. Slideshare Free API – Version 1.0 Initial configuration In order to use the slideshare API, you will need to first create an account on Slideshare. Once you do, visit the following url (http://www.slideshare.net/developers/applyforapi) and fill out a form. At this time, you will need to indicate a point of contact (name and email address). If your account is approved, we will provide you with 1) An API Key (needed use of the API) 2) A shared secret (a string used to sign your API calls) API Validation using the slideshare API All requests made using the SlideShare API must have the following parameters 1) api_key: set this value to the API Key that SlideShare has provided for you. 2) ts: set this value to the current time in Unix TimeStamp format, to the nearest second (http://en.wikipedia.org/wiki/Unix_time) . 3) hash: set this value to the SHA1 hash of the string created by concatenation of the shared secret and the timestamp(i.e ts) Authentication using the slideshare API Requests that request private data from users, or that act on their behalf, must include the following parameters. 1) username: set this to the username of the account whose data is being requested 2) password: set this to the password of the account whose data is being requested Note: these requests are marked with the phrase “auth needed” in the documentation Not all the requests require authentication. Uploading Slideshows using the slideshare API (auth needed) Content can be uploaded to the slideshare API using a simple HTTP POST to the following URL. http://www.slideshare.net/api/1/upload_slideshow with the following required parameters: api_key ts hash username password slideshow_title slideshow_srcfile and the following optional parameters: slideshow_description slideshow_tags (tags should be space separated, use quotes for multiple word tags)
  • 2. make_src_public (should be Y if you want users to be able to download the ppt file later, N otherwise. Default is Y) The document will upload into the account of the user specified by (username / password). So, for example, a bulk uploader would include the api_key (and hash) associated with the API account, and the username and password associated with the account being uploaded to. You will receive back an xml document that looks like the following <SlideShowUploaded> <SlideShowID>{slideshow id goes here}</SlideShowID> </SlideShowUploaded> The slideshare ID will be necessary for retrieving the slideshow embed code, once the slideshow has been converted into flash. If there was an error of some kind, you will receive back an xml document that looks like the following <SlideShareServiceError> <Message id={various numbers go here}>{various messages go here}</Message> </SlideShareServiceError> The message / ID in a SlideShareService error will be one of the following: 1 Failed API validation 2 Failed User authentication 3 Missing title 4 Missing file for upload 5 Blank title 6 Slideshow file isn't a source object 7 Invalid extension 8 File size too big Retrieving Embed Code for a Slideshow using the SlideShare API After a file has been uploaded to SlideShare, it will be converted into a series of flash files suitable for streaming over the internet (this usually takes 1-10 minutes, depending on the size of the file and how many other files are in the queue). The files will be hosted by slideshare: clients embed them into their own html using an “embed code”, similar to the embed codes used on sites like youtube for embedding videos. Content can be retrieved from the slideshare API using a simple HTTP POST to the following url: http://www.slideshare.net/api/1/get_slideshow with the following parameters: api_key ts hash slideshow_id You will receive back an xml document that looks like the following
  • 3. <Slideshow> <Status>0, 1, 2, or 3</Status> <StatusDescription>{queued, processing, ready, or failed}</StatusDescription> <Title>{title goes here}</Title> <Description>{description goes here}</Description> <Tags>{all tags go here, separated by spaces. Multiple word tags are surrounded by double quotes}</Tags> <EmbedCode>{embed code goes here}</EmbedCode> <Thumbnail>{url for thumbnail goes here}</Thumbnail> <Permalink>{Permanent link for the slideshow}</Permalink> <Views>{Number of views for the slideshow}</Views> </Slideshow> Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed). EmbedCode and Thumbnail will ONLY be provided if status is 2(ready). If there was an error of some kind, you will receive back an xml document that looks like the following <SlideShareServiceError> <Message id={various numbers go here}>{various messages go here, depending on the error}</Message> </SlideShareServiceError> The message in a SlideShareService error will be one of the following: 1 Failed API validation 9 SlideShow Not Found Retrieving SlideShows for a given user Content can be retrieved from the slideshare API using an HTTP GET to the following url: http://www.slideshare.net/api/1/get_slideshow_by_user with the following parameters: api_key ts hash username_for Optional parameters (Useful for pagination) Offset : The offset from which we retrieve slideshows Limit : How many slideshows to retrieve You will receive back an xml document that looks like the following <User>{Name goes here}</User> <count>{Total number of slideshows for given user}</count> <Slideshow> <EmbedCode>{embed code goes here}</EmbedCode> <Thumbnail>{url for thumbnail goes here}</Thumbnail> <Title>{title goes here}</Title> <Description>{description goes here}</Description> <Status>0, 1, 2, or 3</Status>
  • 4. <StatusDescription>{queued, processing, ready, or failed}</StatusDescription> <Permalink>{Permanent link for the slideshow}</Permalink> <Views>{Number of views for the slideshow}</Views> </Slideshow> {repeat SlideShow element as many times as is necessary} </User> Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed). If there was an error of some kind, you will receive back an xml document that looks like the following <SlideShareServiceError> <Message id={various numbers go here}>{various messages go here}</Message> </SlideShareServiceError> The message in a SlideShareService error will be one of the following: 1 Failed API validation 10 User Not Found Retrieving SlideShows for a given tag Content can be retrieved from the slideshare API using a simple HTTP GET to the following url: http://www.slideshare.net/api/1/get_slideshow_by_tag with the following parameters: api_key ts hash tag Optional parameters (Useful for pagination) Offset : The offset from which we retrieve slideshows Limit : How many slideshows to retrieve You will receive back an xml document that looks like the following <Tag> <name>{tag}</name> <count>{Total number of slideshows for given tag}</count> <Slideshow> <EmbedCode>{embed code goes here}</EmbedCode> <Thumbnail>{url for thumbnail goes here}</Thumbnail> <Title>{title goes here}</Title> <Description>{description goes here}</Description> <Status>0, 1, 2, or 3</Status> <StatusDescription>{queued, processing, ready, or failed}</StatusDescription> <Permalink>{Permanent link for the slideshow}</Permalink> <Views>{Number of views for the slideshow}</Views> </Slideshow> {repeat SlideShow element as many times as is necessary} </Tag>
  • 5. Status for each slideshow can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed). If there was an error of some kind, you will receive back an xml document that looks like the following <SlideShareServiceError> <Message id={various numbers go here}>{various messages go here}</Message> </SlideShareServiceError> The message in a SlideShareService error will be one of the following: 1 Failed API validation Retrieving SlideShows for a given group Content can be retrieved from the slideshare API using a simple HTTP GET to the following url: http://www.slideshare.net/api/1/get_slideshows_from_group with the following parameters: api_key ts hash group_name Optional parameters (Useful for pagination) Offset : The offset from which we retrieve slideshows Limit : How many slideshows to retrieve You will receive back an xml document that looks like the following <Group>{name goes here}</Group> <Slideshow> <EmbedCode>{embed code goes here}</EmbedCode> <Thumbnail>{url for thumbnail goes here}</Thumbnail> <Title>{title goes here}</Title> <Description>{description goes here}</Description> <Status>0, 1, 2, or 3</Status> <StatusDescription>{queued, processing, ready, or failed}</StatusDescription> <Permalink>{Permanent link for the slideshow}</Permalink> <Views>{Number of views for the slideshow}</Views> </Slideshow> {repeat SlideShow element as many times as is necessary} </Group> Status can be 0 (queued), 1 (processing), 2 (ready), or 3 (failed). If there was an error of some kind, you will receive back an xml document that looks like the following <SlideShareServiceError> <Message id={various numbers go here}>{various messages go here}</Message> </SlideShareServiceError>
  • 6. The message in a SlideShareService error will be one of the following: 1 Failed API validation 11 Group Not Found Complete List of Error Codes 1 Failed API validation 2 Failed User authentication 3 Missing title 4 Missing file for upload 5 Blank title 6 Slideshow file isn't a source object 7 Invalid extension 8 File size too big 9 SlideShow Not Found 10 User Not Found 11 Group Not Found 12 No Tag Provided 13 Tag Not Found 99 Account Exceeded Daily Limit 100 Your Account has been blocked Notes about using API Your use of the API is at the discretion of SlideShare, and is restricted to non-commercial use. For full details, see the API terms of service (http://www.slideshare.net/developers/tos). It is recommended that you join the SlideShare API mailing list at (http://groups.google.com/group/slideshare-developers) So that you can interact with other API users and get regular updates about the SlideShare API. In particular, do NOT write code that calls our API every time you get a web request. Cache the information so that you can serve it as needed to your users. API calls are limited to 1000 per day per API_Key. Calls that exceed this limit will receive an error message. <SlideShareServiceError> <Message id=”99”>Account Exceeded Daily Limit</Message> </SlideShareServiceError>